Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.html

Issue 2672863007: Convert Panner distance model tests to testharness (Closed)
Patch Set: Reindent according to review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698