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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic.html

Issue 2676873002: Convert Panner Audit tsets to testharness (Closed)
Patch Set: Remove finish task and some extra blank lines 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic.html b/third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic.html
index 0caa4ea85ec6599e6d92b12bcfda44e30de49709..fd4b9fc562c751413a97502a870277e2ad285d83 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic.html
@@ -1,7 +1,8 @@
<!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/panner-formulas.js"></script>
@@ -10,9 +11,6 @@
<body>
<script>
- description("Test Basic PannerNode with Automation Position Properties.");
- window.jsTestIsAsync = true;
-
var sampleRate = 48000;
// These tests are quite slow, so don't run for many frames. 256 frames should be enough to
@@ -174,11 +172,6 @@
}).then(done);
});
- audit.defineTask("finish", function (done) {
- finishJSTest();
- done();
- });
-
audit.runTasks();
function createGraph(channelCount) {
@@ -245,10 +238,8 @@
.notBeEqualTo(data1[0]) && success;
var prefix = "Directly setting " + message + ".value";
- if (success)
- testPassed(prefix + " worked.\n");
- else
- testFailed(prefix + " failed.\n");
+ Should(prefix, success)
+ .summarize("worked", "failed");
}
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/Panner/panner-automation-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698