Support enum value as a union default value

This commit is contained in:
Kagami Sascha Rosylight 2019-10-17 16:10:39 +09:00
parent 118a9ecdfe
commit 40ee701283
4 changed files with 36 additions and 29 deletions

View file

@ -1,23 +1,8 @@
[audiocontextoptions.html]
[X creating two high latency contexts incorrectly threw TypeError: "'0' is not a valid enum value for enumeration 'AudioContextLatencyCategory'.".]
expected: FAIL
[X context = new AudioContext({'latencyHint': interactiveLatency/2}) incorrectly threw TypeError: "'0' is not a valid enum value for enumeration 'AudioContextLatencyCategory'.".]
expected: FAIL
[X context = new AudioContext({'latencyHint': validLatency}) incorrectly threw TypeError: "'0' is not a valid enum value for enumeration 'AudioContextLatencyCategory'.".]
expected: FAIL
[X context = new AudioContext({sampleRate: 1}) did not throw an exception.]
expected: FAIL
[< [test-audiocontextoptions-latencyHint-double\] 3 out of 6 assertions were failed.]
expected: FAIL
[# AUDIT TASK RUNNER FINISHED: 2 out of 3 tasks were failed.]
expected: FAIL
[Executing "test-audiocontextoptions-latencyHint-double"]
[# AUDIT TASK RUNNER FINISHED: 1 out of 3 tasks were failed.]
expected: FAIL
[X context = new AudioContext({sampleRate: 1000000}) did not throw an exception.]