Truly independent web browser
Harness status: OK
Found 41 tests
41 Pass
Pass # AUDIT TASK RUNNER STARTED.
Pass Executing "test-audiocontextoptions-latencyHint-basic"
Pass 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.
Pass context = new AudioContext({'latencyHint': interactiveLatency/2}) did not throw an exception.
Pass double-constructor baseLatency small is less than or equal to 0.
Pass context = new AudioContext({'latencyHint': validLatency}) did not throw an exception.
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.
Pass creating two high latency contexts did not throw an exception.
Pass high latency context baseLatency is equal to 0.
Pass high latency context baseLatency is greater than or equal to 0.
Pass context = new AudioContext({'latencyHint': 'foo'}) threw TypeError: "Expected latencyHint to be a finite floating-point number".
Pass context = new AudioContext('latencyHint') threw TypeError: "Not an object of type AudioContextOptions".
Pass < [test-audiocontextoptions-latencyHint-double] All assertions passed. (total 10 assertions)
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: 0}) threw NotSupportedError: "Sample rate is outside of allowed range".
Pass context = new AudioContext({sampleRate: 2999}) threw NotSupportedError: "Sample rate is outside of allowed range".
Pass context = new AudioContext({sampleRate: 768001}) threw NotSupportedError: "Sample rate is outside of allowed range".
Pass context = new AudioContext({sampleRate: 3000}) did not throw an exception.
Pass sampleRate inrange is equal to 3000.
Pass context = new AudioContext({sampleRate: 768000}) did not throw an exception.
Pass sampleRate inrange is equal to 768000.
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 10 assertions)
Pass # AUDIT TASK RUNNER FINISHED: 3 tasks ran successfully.