forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Align AudioContext constructor with current spec steps
- Loading branch information
Showing
6 changed files
with
344 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...cted/wpt-import/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Harness status: Error | ||
|
||
Found 32 tests | ||
|
||
27 Pass | ||
5 Fail | ||
Pass # AUDIT TASK RUNNER STARTED. | ||
Pass Executing "test-audiocontextoptions-latencyHint-basic" | ||
Fail Executing "test-audiocontextoptions-latencyHint-double" | ||
Pass Executing "test-audiocontextoptions-sampleRate" | ||
Pass Audit report | ||
Pass > [test-audiocontextoptions-latencyHint-basic] Test creating contexts with basic latencyHint types. | ||
Pass context = new AudioContext() did not throw an exception. | ||
Pass context.sampleRate (44100 Hz) is greater than 0. | ||
Pass default baseLatency is greater than or equal to 0. | ||
Pass context = new AudioContext({'latencyHint': 'interactive'}) did not throw an exception. | ||
Pass interactive baseLatency is equal to 0. | ||
Pass context = new AudioContext({'latencyHint': 'balanced'}) did not throw an exception. | ||
Pass balanced baseLatency is greater than or equal to 0. | ||
Pass context = new AudioContext({'latencyHint': 'playback'}) did not throw an exception. | ||
Pass playback baseLatency is greater than or equal to 0. | ||
Pass < [test-audiocontextoptions-latencyHint-basic] All assertions passed. (total 9 assertions) | ||
Pass > [test-audiocontextoptions-latencyHint-double] Test creating contexts with explicit latencyHint values. | ||
Fail X context = new AudioContext({'latencyHint': interactiveLatency/2}) incorrectly threw TypeError: "Invalid value '0' for enumeration type 'AudioContextLatencyCategory'". | ||
Pass double-constructor baseLatency small is less than or equal to 0. | ||
Fail X context = new AudioContext({'latencyHint': validLatency}) incorrectly threw TypeError: "Invalid value '0' for enumeration type 'AudioContextLatencyCategory'". | ||
Pass double-constructor baseLatency inrange 1 is greater than or equal to 0. | ||
Pass double-constructor baseLatency inrange 2 is less than or equal to 0. | ||
Fail X creating two high latency contexts incorrectly threw TypeError: "Invalid value '0' for enumeration type 'AudioContextLatencyCategory'". | ||
Pass > [test-audiocontextoptions-sampleRate] Test creating contexts with non-default sampleRate values. | ||
Pass context = new AudioContext({sampleRate: 1}) threw NotSupportedError: "Sample rate is outside of allowed range". | ||
Pass context = new AudioContext({sampleRate: 1000000}) threw NotSupportedError: "Sample rate is outside of allowed range". | ||
Pass context = new AudioContext({sampleRate: -1}) threw NotSupportedError: "Sample rate is outside of allowed range". | ||
Pass context = new AudioContext({sampleRate: 0}) threw NotSupportedError: "Sample rate is outside of allowed range". | ||
Pass context = new AudioContext({sampleRate: 24000}) did not throw an exception. | ||
Pass sampleRate inrange is equal to 24000. | ||
Pass < [test-audiocontextoptions-sampleRate] All assertions passed. (total 6 assertions) | ||
Fail # AUDIT TASK RUNNER FINISHED: 1 out of 3 tasks were failed. |
Oops, something went wrong.