Title: [92817] trunk/LayoutTests
- Revision
- 92817
- Author
- [email protected]
- Date
- 2011-08-10 21:00:49 -0700 (Wed, 10 Aug 2011)
Log Message
Test how AudioBufferSourceNode reacts when given too few arguments
https://bugs.webkit.org/show_bug.cgi?id=65816
Reviewed by Sam Weinig.
The WebAudio API is extremely new. It has only been available as an
experimental API in a single browser. The compatibility cost of
tightening up these APIs is tiny and these APIs make very little sense
to call with too-few arguments.
* webaudio/audionode-expected.txt:
* webaudio/audionode.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (92816 => 92817)
--- trunk/LayoutTests/ChangeLog 2011-08-11 03:58:17 UTC (rev 92816)
+++ trunk/LayoutTests/ChangeLog 2011-08-11 04:00:49 UTC (rev 92817)
@@ -1,5 +1,20 @@
2011-08-10 Adam Barth <[email protected]>
+ Test how AudioBufferSourceNode reacts when given too few arguments
+ https://bugs.webkit.org/show_bug.cgi?id=65816
+
+ Reviewed by Sam Weinig.
+
+ The WebAudio API is extremely new. It has only been available as an
+ experimental API in a single browser. The compatibility cost of
+ tightening up these APIs is tiny and these APIs make very little sense
+ to call with too-few arguments.
+
+ * webaudio/audionode-expected.txt:
+ * webaudio/audionode.html:
+
+2011-08-10 Adam Barth <[email protected]>
+
Add tests of optional arguments for Geolocation
https://bugs.webkit.org/show_bug.cgi?id=65810
Modified: trunk/LayoutTests/webaudio/audionode-expected.txt (92816 => 92817)
--- trunk/LayoutTests/webaudio/audionode-expected.txt 2011-08-11 03:58:17 UTC (rev 92816)
+++ trunk/LayoutTests/webaudio/audionode-expected.txt 2011-08-11 04:00:49 UTC (rev 92817)
@@ -2,6 +2,9 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+PASS audioNode.noteOn() threw exception TypeError: Not enough arguments.
+PASS audioNode.noteGrainOn() threw exception TypeError: Not enough arguments.
+PASS audioNode.noteOff() threw exception TypeError: Not enough arguments.
PASS Source AudioNode has no inputs.
PASS Source AudioNode has one output.
PASS connect() exception thrown for illegal destination AudioNode.
Modified: trunk/LayoutTests/webaudio/audionode.html (92816 => 92817)
--- trunk/LayoutTests/webaudio/audionode.html 2011-08-11 03:58:17 UTC (rev 92816)
+++ trunk/LayoutTests/webaudio/audionode.html 2011-08-11 04:00:49 UTC (rev 92817)
@@ -25,8 +25,12 @@
window.jsTestIsAsync = true;
context = new webkitAudioContext();
- var audioNode = context.createBufferSource();
+ window.audioNode = context.createBufferSource();
+ shouldThrow("audioNode.noteOn()");
+ shouldThrow("audioNode.noteGrainOn()");
+ shouldThrow("audioNode.noteOff()");
+
// Check number of inputs and outputs.
if (audioNode.numberOfInputs == 0)
testPassed("Source AudioNode has no inputs.");
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes