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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audioworklet/window-audioworklet.html

Issue 2567713002: Separating layout test utilities into audit-util.js (Closed)
Patch Set: Created 4 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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Checking window.audioWorklet</title> 4 <title>Checking window.audioWorklet</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audio-testing.js"></script> 8 <script src="../resources/audio-testing.js"></script>
8 <script src="audioworklet-testing.js"></script> 9 <script src="audioworklet-testing.js"></script>
9 </head> 10 </head>
10 <body> 11 <body>
11 <script> 12 <script>
12 var audit = Audit.createTaskRunner(); 13 var audit = Audit.createTaskRunner();
13 14
14 audit.defineTask('window-audioworklet', function (taskDone) { 15 audit.defineTask('window-audioworklet', function (taskDone) {
15 16
16 // TODO: remove this check if AudioWorklet ships to the stable. 17 // TODO: remove this check if AudioWorklet ships to the stable.
17 if (!checkInternalsAndAudioWorkletRuntimeFlag(taskDone)) 18 if (!checkInternalsAndAudioWorkletRuntimeFlag(taskDone))
18 return; 19 return;
19 20
20 Should('window.audioWorklet is an instance of Worklet', 21 Should('window.audioWorklet is an instance of Worklet',
21 window.audioWorklet instanceof Worklet).beEqualTo(true); 22 window.audioWorklet instanceof Worklet).beEqualTo(true);
22 23
23 taskDone(); 24 taskDone();
24 }); 25 });
25 26
26 27
27 audit.runTasks(); 28 audit.runTasks();
28 </script> 29 </script>
29 </body> 30 </body>
30 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698