| Index: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
|
| index ea933f15c178da7a822ee6fce8be2a0b578f9841..0f612603d0218db7e580c26372f189b8ed77adcc 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html
|
| @@ -5,7 +5,7 @@
|
| <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 src="../resources/audit.js"></script>
|
| </head>
|
|
|
| <body>
|
| @@ -16,33 +16,39 @@
|
| var scriptNode2;
|
| var analyzer;
|
|
|
| - audit.defineTask("initialize", function (done) {
|
| - Should("context = new OfflineAudioContext(1, 1024, 44100)", function () {
|
| + audit.define('initialize', (task, should) => {
|
| + should(function() {
|
| context = new OfflineAudioContext(1, 1024, 44100);
|
| - }).notThrow();
|
| - Should("analyzer = context.createAnalyser()", function () {
|
| + }, 'context = new OfflineAudioContext(1, 1024, 44100)').notThrow();
|
| + should(function() {
|
| analyzer = context.createAnalyser();
|
| - }).notThrow();
|
| - Should("scriptNode1 = context.createScriptProcessor(1024, 11, 0)", function () {
|
| - scriptNode1 = context.createScriptProcessor(1024, 11, 0);
|
| - }).notThrow();
|
| - Should("scriptNode2 = context.createScriptProcessor(1024, 1, 1)", function () {
|
| - scriptNode2 = context.createScriptProcessor(1024, 1, 1);
|
| - }).notThrow();
|
| - done();
|
| + }, 'analyzer = context.createAnalyser()').notThrow();
|
| + should(
|
| + function() {
|
| + scriptNode1 = context.createScriptProcessor(1024, 11, 0);
|
| + },
|
| + 'scriptNode1 = context.createScriptProcessor(1024, 11, 0)')
|
| + .notThrow();
|
| + should(
|
| + function() {
|
| + scriptNode2 = context.createScriptProcessor(1024, 1, 1);
|
| + },
|
| + 'scriptNode2 = context.createScriptProcessor(1024, 1, 1)')
|
| + .notThrow();
|
| + task.done();
|
| });
|
|
|
| - audit.defineTask("test", function (done) {
|
| - Should("scriptNode1.connect(analyzer)", function () {
|
| + audit.define('test', (task, should) => {
|
| + should(function() {
|
| scriptNode1.connect(analyzer);
|
| - }).throw("InvalidAccessError");
|
| - Should("scriptNode2.connect(analyzer)", function () {
|
| + }, 'scriptNode1.connect(analyzer)').throw('InvalidAccessError');
|
| + should(function() {
|
| scriptNode2.connect(analyzer);
|
| - }).notThrow();
|
| - done();
|
| + }, 'scriptNode2.connect(analyzer)').notThrow();
|
| + task.done();
|
| });
|
|
|
| - audit.runTasks();
|
| + audit.run();
|
| </script>
|
| </body>
|
| </html>
|
|
|