Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html |
| index e390c67a85060c0275d6820b01de09b935e49743..e3d558467d61801ba0a3cd69a7595f18e81cbcc6 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html |
| +++ b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html |
| @@ -2,35 +2,34 @@ |
| <html> |
| <head> |
| -<script src="../../resources/js-test.js"></script> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| <script src="../resources/audit-util.js"></script> |
| -<script src="../resources/audio-testing.js"></script> |
| -<script type="text/javascript" src="../resources/scriptprocessornode-testing.js"></script> |
| +<script src="../resources/audit.js"></script> |
| +<script src="../resources/scriptprocessornode-testing-audit.js"></script> |
| </head> |
| <body> |
| - |
| -<div id="description"></div> |
| -<div id="console"></div> |
| - |
| <script> |
| -description("Tests upmixing a 2-channel source connected to a JavaScriptAudioNode with 8-channel input."); |
| - |
| -var sampleRate = 44100.0; |
| -var sourceChannels = 2; |
| -var inputChannels = 8; |
| -var outputChannels = 6; |
| - |
| -window.jsTestIsAsync = true; |
| - |
| -function runTest() { |
| - if (window.testRunner) |
| - testRunner.dumpAsText(); |
| - runJSNodeTest(); |
| -} |
| - |
| -runTest(); |
| - |
| +let audit = Audit.createTaskRunner(); |
| + |
| +let sampleRate = 44100.0; |
| +let sourceChannels = 2; |
| +let inputChannels = 8; |
| +let outputChannels = 6; |
| + |
| +audit.define( |
| + { |
| + label: 'test', |
| + description: |
| + 'upmixing a 2-channel source connected to a JavaScriptAudioNode with 8-channel input' |
|
hongchan
2017/02/24 23:12:46
Ditto.
Raymond Toy
2017/02/27 17:31:22
Done.
|
| + }, |
| + (task, should) => { |
| + runJSNodeTest(should).then(() => task.done()); |
| + ; |
| + }); |
| + |
| +audit.run(); |
| </script> |
| </body> |