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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/convolver-setBuffer-null.html

Issue 1493753003: Drop [LegacyInterfaceTypeChecking] for the Web Audio API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests Created 5 years 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
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 <script src="resources/compatibility.js"></script> 4 <script src="resources/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
6 <script src="../resources/js-test.js"></script> 6 <script src="../resources/js-test.js"></script>
7 </head> 7 </head>
8 8
9 <body> 9 <body>
10 <div id="description"></div> 10 <div id="description"></div>
11 <div id="console"></div> 11 <div id="console"></div>
12 12
13 <script> 13 <script>
14 description("Tests that ConvolverNode impulse response buffer can be set to 0.") ; 14 description("Tests that ConvolverNode impulse response buffer can be set to null .");
15 15
16 function runTest() 16 function runTest()
17 { 17 {
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 } 21 }
22 22
23 window.jsTestIsAsync = true; 23 window.jsTestIsAsync = true;
24 24
25 var context = new AudioContext(); 25 var context = new AudioContext();
26 var conv = context.createConvolver(); 26 var conv = context.createConvolver();
27 27
28 conv.buffer = 0; 28 conv.buffer = null;
29 testPassed("ConvolverNode impulse response buffer was set to 0."); 29 testPassed("ConvolverNode impulse response buffer was set to null.");
30 30
31 finishJSTest(); 31 finishJSTest();
32 } 32 }
33 33
34 runTest(); 34 runTest();
35 successfullyParsed = true; 35 successfullyParsed = true;
36 </script> 36 </script>
37 37
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698