Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: LayoutTests/webaudio/dom-exceptions.html

Issue 50363005: Check that buffer exists before trying to get its duration. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/> 4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
5 <script src="resources/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
6 <script src="../fast/js/resources/js-test-pre.js"></script> 6 <script src="../fast/js/resources/js-test-pre.js"></script>
7 <script src="resources/biquad-testing.js"></script> 7 <script src="resources/biquad-testing.js"></script>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 shouldThrow("new webkitOfflineAudioContext(1, 100, 1)"); 114 shouldThrow("new webkitOfflineAudioContext(1, 100, 1)");
115 shouldThrow("new webkitOfflineAudioContext(1, 100, 1e6)"); 115 shouldThrow("new webkitOfflineAudioContext(1, 100, 1e6)");
116 116
117 // WaveShaper types 117 // WaveShaper types
118 node = context.createWaveShaper(); 118 node = context.createWaveShaper();
119 shouldThrow("node.oversample = '9x'"); 119 shouldThrow("node.oversample = '9x'");
120 120
121 // Start/stop for AudioBufferSourceNodes 121 // Start/stop for AudioBufferSourceNodes
122 buffer = context.createBuffer(1,1, context.sampleRate); 122 buffer = context.createBuffer(1,1, context.sampleRate);
123 shouldNotThrow("source = context.createBufferSource()"); 123 shouldNotThrow("source = context.createBufferSource()");
124 source.buffer = buffer; 124 shouldNotThrow("source.buffer = buffer");
125 shouldNotThrow("source.start()"); 125 shouldNotThrow("source.start()");
126 shouldNotThrow("source.stop()"); 126 shouldNotThrow("source.stop()");
127 127
128 // It's valid to start a source that has no associated buffer.
129 shouldNotThrow("source = context.createBufferSource()");
130 shouldNotThrow("source.start()");
131 shouldNotThrow("source.stop()");
132
128 // Start/stop for OscillatorNodes 133 // Start/stop for OscillatorNodes
129 shouldNotThrow("source = context.createOscillator()"); 134 shouldNotThrow("source = context.createOscillator()");
130 shouldNotThrow("source.start()"); 135 shouldNotThrow("source.start()");
131 shouldNotThrow("source.stop()"); 136 shouldNotThrow("source.stop()");
132 } 137 }
133 138
134 runTest(); 139 runTest();
135 successfullyParsed = true; 140 successfullyParsed = true;
136 141
137 </script> 142 </script>
138 <script src="../fast/js/resources/js-test-post.js"></script> 143 <script src="../fast/js/resources/js-test-post.js"></script>
139 </body> 144 </body>
140 </html> 145 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698