Update WPTs expectations

This commit is contained in:
Fernando Jiménez Moreno 2018-07-27 18:47:38 +02:00
parent f8d61a34a2
commit a12374726d
42 changed files with 316 additions and 15 deletions

View file

@ -1,5 +1,5 @@
[ctor-audiobuffer.html]
expected: ERROR
expected: CRASH
[X context = new OfflineAudioContext(...) incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL

View file

@ -0,0 +1,11 @@
[audiobuffersource-basic.html]
expected: ERROR
[X start(-1) did not throw an exception.]
expected: FAIL
[X start(0,-1) threw "InvalidStateError" instead of function RangeError() {\n [native code\]\n}.]
expected: FAIL
[X start(0,0,-1) threw "InvalidStateError" instead of function RangeError() {\n [native code\]\n}.]
expected: FAIL

View file

@ -0,0 +1,10 @@
[audiobuffersource-channels.html]
[X source.buffer = buffer again did not throw an exception.]
expected: FAIL
[< [validate .buffer\] 1 out of 16 assertions were failed.]
expected: FAIL
[# AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed.]
expected: FAIL

View file

@ -0,0 +1,2 @@
[audiobuffersource-ended.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[audiobuffersource-grain.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[audiobuffersource-multi-channels.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[audiobuffersource-one-sample-loop.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[audiobuffersource-playbackrate-zero.html]
expected: CRASH

View file

@ -0,0 +1,2 @@
[audiobuffersource-start.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[audiosource-onended.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[audiosource-time-limits.html]
expected: ERROR

View file

@ -1,5 +1,4 @@
[ctor-audiobuffersource.html]
expected: ERROR
[X context = new OfflineAudioContext(...) incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL
@ -12,3 +11,12 @@
[X node0 instanceof AudioBufferSourceNode is not equal to true. Got false.]
expected: FAIL
[X node2.buffer === buffer is not equal to true. Got false.]
expected: FAIL
[< [constructor options\] 1 out of 7 assertions were failed.]
expected: FAIL
[# AUDIT TASK RUNNER FINISHED: 1 out of 5 tasks were failed.]
expected: FAIL

View file

@ -0,0 +1,2 @@
[note-grain-on-play.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[note-grain-on-timing.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[sample-accurate-scheduling.html]
expected: ERROR

View file

@ -3,3 +3,9 @@
[X offlineContext = new OfflineAudioContext(1, 44100, 44100) incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL
[X p1 = offlineContext.suspend() incorrectly threw TypeError: "offlineContext.suspend is not a function".]
expected: FAIL
[X p1 instanceof Promise is not true. Got false.]
expected: FAIL

View file

@ -1,2 +1,2 @@
[audionode-channel-rules.html]
expected: ERROR
expected: CRASH

View file

@ -1,4 +0,0 @@
[audionode-connect-return-value.html]
[connect should return the node connected to.]
expected: FAIL

View file

@ -11,3 +11,6 @@
[# AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed.]
expected: FAIL
[< [test\] 1 out of 12 assertions were failed.]
expected: FAIL

View file

@ -1,2 +1,2 @@
[channel-mode-interp-basic.html]
expected: ERROR
expected: CRASH

View file

@ -1,2 +1,2 @@
[audioparam-connect-audioratesignal.html]
expected: ERROR
expected: CRASH

View file

@ -1,8 +1,49 @@
[audioparam-exceptional-values.html]
expected: ERROR
[X Creating context for testing incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL
[< [initialize\] 1 out of 1 assertions were failed.]
expected: FAIL
[X gain.gain.setValueAtTime(1,-1) did not throw an exception.]
expected: FAIL
[X gain.gain.linearRampToValueAtTime(1,-1) did not throw an exception.]
expected: FAIL
[X gain.gain.exponentialRampToValueAtTime(1,-1) did not throw an exception.]
expected: FAIL
[X gain.gain.setTargetAtTime(1,-1,1) did not throw an exception.]
expected: FAIL
[X gain.gain.setTargetAtTime(1,1,-1) did not throw an exception.]
expected: FAIL
[X gain.gain.setValueCurveAtTime([[object Float32Array\]\],-1,1) threw "TypeError" instead of function RangeError() {\n [native code\]\n}.]
expected: FAIL
[X gain.gain.setValueCurveAtTime([[object Float32Array\]\],1,-1) threw "TypeError" instead of function RangeError() {\n [native code\]\n}.]
expected: FAIL
[X gain.gain.setValueCurveAtTime(curve, 1, 0) threw "TypeError" instead of function RangeError() {\n [native code\]\n}.]
expected: FAIL
[< [special cases 1\] 8 out of 8 assertions were failed.]
expected: FAIL
[X gain.gain.exponentialRampToValueAtTime(0,1) did not throw an exception.]
expected: FAIL
[X gain.gain.exponentialRampToValueAtTime(-1e-100,1) did not throw an exception.]
expected: FAIL
[X gain.gain.exponentialRampToValueAtTime(1e-100,1) did not throw an exception.]
expected: FAIL
[< [special cases 2\] 3 out of 3 assertions were failed.]
expected: FAIL
[# AUDIT TASK RUNNER FINISHED: 2 out of 6 tasks were failed.]
expected: FAIL

View file

@ -1,2 +1,35 @@
[audioparam-setValueCurve-exceptions.html]
expected: ERROR
[X setValueCurveAtTime(curve, 0.0125, 0.0125) incorrectly threw TypeError: "g.gain.setValueCurveAtTime is not a function".]
expected: FAIL
[X setValueAtTime(1, 0.018750000000000003) did not throw an exception.]
expected: FAIL
[X linearRampToValueAtTime(1, 0.018750000000000003) did not throw an exception.]
expected: FAIL
[X exponentialRampToValueAtTime(1, 0.018750000000000003) did not throw an exception.]
expected: FAIL
[X setTargetAtTime(1, 0.018750000000000003, 1) did not throw an exception.]
expected: FAIL
[< [setValueCurve\] 5 out of 6 assertions were failed.]
expected: FAIL
[X setValueCurveAtTime(curve, 0.05, 0.1) incorrectly threw TypeError: "g.gain.setValueCurveAtTime is not a function".]
expected: FAIL
[X setValueCurveAtTime(curve, 0.00625, 0.01) threw "TypeError" instead of NotSupportedError.]
expected: FAIL
[X setValueCurveAtTime(curve, 0.018750000000000003, 0.01) threw "TypeError" instead of NotSupportedError.]
expected: FAIL
[X setValueCurveAtTime(curve, 0.03125, 0.01) threw "TypeError" instead of NotSupportedError.]
expected: FAIL
[X setValueCurveAtTime(curve, 0.043750000000000004, 0.01) threw "TypeError" instead of NotSupportedError.]
expected: FAIL

View file

@ -1,2 +1,2 @@
[audioparam-summingjunction.html]
expected: ERROR
expected: CRASH

View file

@ -1,2 +1,11 @@
[automation-rate.html]
expected: ERROR
[X Set AudioBufferSourceNode.detune.automationRate to "a-rate" did not throw an exception.]
expected: FAIL
[X Set AudioBufferSourceNode.playbackRate.automationRate to "a-rate" did not throw an exception.]
expected: FAIL
[< [AudioBufferSourceNode\] 2 out of 4 assertions were failed.]
expected: FAIL

View file

@ -1,4 +1,5 @@
[setTargetAtTime-after-event-within-block.html]
expected: ERROR
[Test setTargetAtTime after an event in the same processing block]
expected: FAIL

View file

@ -1,4 +1,5 @@
[setValueAtTime-within-block.html]
expected: ERROR
[Test setValueAtTime with start time not on a block boundary]
expected: FAIL

View file

@ -0,0 +1,2 @@
[audioworklet-audioparam-size.https.html]
expected: ERROR

View file

@ -1,4 +1,5 @@
[baseaudiocontext-audioworklet.https.html]
expected: ERROR
[\n Checking BaseAudioContext.audioWorklet\n ]
expected: FAIL

View file

@ -6,3 +6,9 @@
[< [initialize\] 1 out of 1 assertions were failed.]
expected: FAIL
[X context.createBiquadFilter does not exist. Got undefined.]
expected: FAIL
[< [existence\] 1 out of 1 assertions were failed.]
expected: FAIL

View file

@ -1,2 +1,17 @@
[audiochannelmerger-basic.html]
expected: ERROR
[X context.createChannelMerger() incorrectly threw TypeError: "context.createChannelMerger is not a function".]
expected: FAIL
[X context.createChannelMerger(0) threw "TypeError" instead of IndexSizeError.]
expected: FAIL
[X context.createChannelMerger(32) incorrectly threw TypeError: "context.createChannelMerger is not a function".]
expected: FAIL
[X context.createChannelMerger(33) threw "TypeError" instead of IndexSizeError.]
expected: FAIL
[< [exceptions-channels\] 4 out of 4 assertions were failed.]
expected: FAIL

View file

@ -1,2 +1,11 @@
[audiochannelsplitter.html]
expected: ERROR
[X createChannelSplitter(0) threw "TypeError" instead of IndexSizeError.]
expected: FAIL
[X createChannelSplitter(33) threw "TypeError" instead of IndexSizeError.]
expected: FAIL
[X splitternode = context.createChannelSplitter(32) incorrectly threw TypeError: "context.createChannelSplitter is not a function".]
expected: FAIL

View file

@ -0,0 +1,2 @@
[convolver-setBuffer-already-has-value.html]
expected: ERROR

View file

@ -1,2 +1,11 @@
[delaynode-maxdelaylimit.html]
expected: ERROR
[X () => context.createDelay(180) threw "TypeError" instead of Delay length cannot be 180 seconds or more.]
expected: FAIL
[X () => context.createDelay(0) threw "TypeError" instead of Delay length cannot be 0.]
expected: FAIL
[X () => context.createDelay(-1) threw "TypeError" instead of Delay length cannot be negative.]
expected: FAIL

View file

@ -1,5 +1,4 @@
[ctor-gain.html]
expected: ERROR
[X context = new OfflineAudioContext(...) incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL
@ -12,3 +11,33 @@
[X node0 instanceof GainNode is not equal to true. Got false.]
expected: FAIL
[X node.channelCount is not equal to 17. Got 2.]
expected: FAIL
[X new GainNode(c, {channelCount: 0}) did not throw an exception.]
expected: FAIL
[X new GainNode(c, {channelCount: 99}) did not throw an exception.]
expected: FAIL
[X node.channelCountMode after valid setter is not equal to clamped-max. Got max.]
expected: FAIL
[X node.channelCountMode after valid setter is not equal to explicit. Got max.]
expected: FAIL
[X node.channelCountMode after invalid setter is not equal to explicit. Got max.]
expected: FAIL
[X node.channelInterpretation is not equal to discrete. Got speakers.]
expected: FAIL
[X node.channelInterpretation after invalid setter is not equal to discrete. Got speakers.]
expected: FAIL
[< [test AudioNodeOptions\] 8 out of 20 assertions were failed.]
expected: FAIL
[# AUDIT TASK RUNNER FINISHED: 1 out of 5 tasks were failed.]
expected: FAIL

View file

@ -1,5 +1,5 @@
[test-gainnode.html]
expected: ERROR
expected: CRASH
[GainNode]
expected: NOTRUN

View file

@ -6,3 +6,9 @@
[< [initialize\] 1 out of 1 assertions were failed.]
expected: FAIL
[X context.createIIRFilter does not exist. Got undefined.]
expected: FAIL
[< [existence\] 1 out of 1 assertions were failed.]
expected: FAIL

View file

@ -1,2 +1,8 @@
[iirfilter.html]
expected: ERROR
[X createIIRFilter with normalized coefficients incorrectly threw TypeError: "context.createIIRFilter is not a function".]
expected: FAIL
[X createIIRFilter with unnormalized coefficients incorrectly threw TypeError: "context.createIIRFilter is not a function".]
expected: FAIL

View file

@ -1,5 +1,4 @@
[ctor-offlineaudiocontext.html]
expected: ERROR
[X new OfflineAudioContext(3) threw "ReferenceError" instead of TypeError.]
expected: FAIL
@ -9,3 +8,33 @@
[X context = new OfflineAudioContext(3, 42, 12345) incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL
[X new OfflineAudioContext() did not throw an exception.]
expected: FAIL
[X new OfflineAudioContext({}) did not throw an exception.]
expected: FAIL
[X new OfflineAudioContext({"length":42}) did not throw an exception.]
expected: FAIL
[X new OfflineAudioContext({"sampleRate":12345}) did not throw an exception.]
expected: FAIL
[< [options-1\] 4 out of 10 assertions were failed.]
expected: FAIL
[X new OfflineAudioContext({"length":42,"sampleRate":8000,"numberOfChannels":33}) did not throw an exception.]
expected: FAIL
[X new OfflineAudioContext({"length":0,"sampleRate":8000}) did not throw an exception.]
expected: FAIL
[X new OfflineAudioContext({"length":1,"sampleRate":1}) did not throw an exception.]
expected: FAIL
[< [options-2\] 3 out of 3 assertions were failed.]
expected: FAIL
[# AUDIT TASK RUNNER FINISHED: 2 out of 4 tasks were failed.]
expected: FAIL

View file

@ -1,4 +1,5 @@
[current-time-block-size.html]
expected: TIMEOUT
[Test currentTime at completion of OfflineAudioContext rendering]
expected: FAIL
expected: TIMEOUT

View file

@ -12,3 +12,39 @@
[X node0 instanceof OscillatorNode is not equal to true. Got false.]
expected: FAIL
[X node0.type is not equal to sine. Got undefined.]
expected: FAIL
[< [default constructor\] 1 out of 9 assertions were failed.]
expected: FAIL
[X node.channelCount is not equal to 17. Got 2.]
expected: FAIL
[X new OscillatorNode(c, {channelCount: 0}) did not throw an exception.]
expected: FAIL
[X new OscillatorNode(c, {channelCount: 99}) did not throw an exception.]
expected: FAIL
[X node.channelCountMode after valid setter is not equal to clamped-max. Got max.]
expected: FAIL
[X node.channelCountMode after valid setter is not equal to explicit. Got max.]
expected: FAIL
[X node.channelCountMode after invalid setter is not equal to explicit. Got max.]
expected: FAIL
[X node.channelInterpretation is not equal to discrete. Got speakers.]
expected: FAIL
[X node.channelInterpretation after invalid setter is not equal to discrete. Got speakers.]
expected: FAIL
[< [test AudioNodeOptions\] 8 out of 20 assertions were failed.]
expected: FAIL
[X node1.type is not equal to sawtooth. Got undefined.]
expected: FAIL

View file

@ -1,2 +1,11 @@
[panner-distance-clamping.html]
expected: ERROR
[X new PannerNode(c, {refDistance: -1}) threw "ReferenceError" instead of RangeError.]
expected: FAIL
[X new PannerNode(c, {refDistance: 0}) incorrectly threw ReferenceError: "PannerNode is not defined".]
expected: FAIL
[X new PannerNode(c, {refDistance: 5e-324}) incorrectly threw ReferenceError: "PannerNode is not defined".]
expected: FAIL