| Index: third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html b/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
|
| index b1a07da242f0009d7631436de5d38c58ae157838..37cc0c3facd91236bebf8b5d52fdeea559044bd9 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html
|
| @@ -1,36 +1,27 @@
|
| -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
| +<!doctype html>
|
| <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 src="../resources/audit.js"></script>
|
| <script src="../resources/distance-model-testing.js"></script>
|
| </head>
|
|
|
| <body>
|
| - <div id="description"></div>
|
| - <div id="console"></div>
|
| -
|
| <script>
|
| - description("Test exponential distance model of AudioPannerNode.");
|
| -
|
| - function runTest() {
|
| - if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| - }
|
| -
|
| - window.jsTestIsAsync = true;
|
| + let audit = Audit.createTaskRunner();
|
|
|
| + audit.define("test", (task, should) => {
|
| + task.describe("Exponential distance model for PannerNode");
|
| // Create offline audio context.
|
| context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
|
|
|
| - createTestAndRun(context, "exponential");
|
| - }
|
| -
|
| - runTest();
|
| - successfullyParsed = true;
|
| + createTestAndRun(context, "exponential", should)
|
| + .then(() => task.done());
|
| + });
|
|
|
| + audit.run();
|
| </script>
|
|
|
| </body>
|
|
|