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

Side by Side Diff: LayoutTests/webaudio/note-grain-on-timing.html

Issue 208943004: Update WebAudio layout tests to use unprefixed AudioContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add console.log to compatibility.js Created 6 years, 9 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 | Annotate | Revision Log
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/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
5 <script src="resources/note-grain-on-testing.js"></script> 6 <script src="resources/note-grain-on-testing.js"></script>
6 <script src="../resources/js-test.js"></script> 7 <script src="../resources/js-test.js"></script>
7 </head> 8 </head>
8 9
9 <body> 10 <body>
10 <div id="description"></div> 11 <div id="description"></div>
11 <div id="console"></div> 12 <div id="console"></div>
12 13
13 <script> 14 <script>
(...skipping 23 matching lines...) Expand all
37 38
38 function runTest() { 39 function runTest() {
39 if (window.testRunner) { 40 if (window.testRunner) {
40 testRunner.dumpAsText(); 41 testRunner.dumpAsText();
41 testRunner.waitUntilDone(); 42 testRunner.waitUntilDone();
42 } 43 }
43 44
44 window.jsTestIsAsync = true; 45 window.jsTestIsAsync = true;
45 46
46 // Create offline audio context. 47 // Create offline audio context.
47 context = new webkitOfflineAudioContext(2, sampleRate * renderTime, sa mpleRate); 48 context = new OfflineAudioContext(2, sampleRate * renderTime, sampleRa te);
48 49
49 squarePulseBuffer = createSignalBuffer(context, function (k) { return 1 }); 50 squarePulseBuffer = createSignalBuffer(context, function (k) { return 1 });
50 51
51 playAllGrains(context, squarePulseBuffer, numberOfTests); 52 playAllGrains(context, squarePulseBuffer, numberOfTests);
52 53
53 context.oncomplete = checkResult; 54 context.oncomplete = checkResult;
54 context.startRendering(); 55 context.startRendering();
55 } 56 }
56 57
57 runTest(); 58 runTest();
58 successfullyParsed = true; 59 successfullyParsed = true;
59 60
60 </script> 61 </script>
61 62
62 </body> 63 </body>
63 </html> 64 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webaudio/note-grain-on-play.html ('k') | LayoutTests/webaudio/offlineaudiocontext-constructor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698