| OLD | NEW |
| 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> |
| OLD | NEW |