Index: third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.html |
diff --git a/third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.html b/third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.html |
index 335bf117754094f0473a2e7fc3bedc1132ca5ba3..fb285a0fdd336b9f102ae17aaa38925687cf97c5 100644 |
--- a/third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.html |
+++ b/third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.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 linear 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("Linear distance model PannerNode"); |
// Create offline audio context. |
context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); |
- createTestAndRun(context, "linear"); |
- } |
- |
- runTest(); |
- successfullyParsed = true; |
+ createTestAndRun(context, "linear", should) |
+ .then(() => task.done()); |
+ }); |
+ audit.run(); |
</script> |
</body> |