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

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

Issue 2669293002: Convert ConvolverNode tests to testharness (Closed)
Patch Set: Remove commented-out code Created 3 years, 10 months 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/js-test.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../resources/audit-util.js"></script> 6 <script src="../resources/audit-util.js"></script>
6 <script src="../resources/audio-testing.js"></script> 7 <script src="../resources/audit.js"></script>
7 </head> 8 </head>
8 9
9 <body> 10 <body>
10 <div id="description"></div> 11 <script>
11 <div id="console"></div> 12 let audit = Audit.createTaskRunner();
12 13
13 <script> 14 audit.define('test', function(task, should) {
14 description("Tests that ConvolverNode impulse response buffer can be set to null ."); 15 let context = new AudioContext();
16 let conv = context.createConvolver();
15 17
16 function runTest() 18 should(() => {
17 { 19 conv.buffer = null;
18 if (window.testRunner) { 20 }, 'Setting ConvolverNode impulse response buffer to null').notThrow();
19 testRunner.dumpAsText(); 21 should(conv.buffer === null, 'conv.buffer === null').beTrue();
20 testRunner.waitUntilDone();
21 }
22 22
23 window.jsTestIsAsync = true; 23 task.done();
24 });
24 25
25 var context = new AudioContext(); 26 audit.run();
26 var conv = context.createConvolver();
27
28 conv.buffer = null;
29 testPassed("ConvolverNode impulse response buffer was set to null.");
30
31 finishJSTest();
32 }
33
34 runTest();
35 successfullyParsed = true;
36 </script> 27 </script>
37 28
38 </body> 29 </body>
39 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698