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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-copy.html

Issue 2658703002: Convert AudioParam Audit tests to testharness (Closed)
Patch Set: Rebase test Created 3 years, 11 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/AudioParam/audioparam-setValueCurve-copy.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-copy.html b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-copy.html
index 749d06a04bdc7a4696ac3c1a44c265c660d2dd04..8d148efa1680d75edb8467ea84505d0bcdf3ba8f 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-copy.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setValueCurve-copy.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,8 +11,6 @@
<body>
<script>
- description("Test setValueCurveAtTime Copies the Curve Data");
- window.jsTestIsAsync = true;
var sampleRate = 48000;
var renderFrames = 1024;
@@ -79,15 +78,12 @@
// changing the curve data should not affect the automation.
var success = Should("setValueCurve output", testData).beEqualToArray(refData);
- if (success)
- testPassed("Changing the curve data did not change the result.");
- else
- testFailed("Changing the curve data unexpectedly changed the result.");
+ Should("Changing the curve data", success)
+ .summarize("did not change the result", "unexpectedly changed the result");
}).then(done);
});
audit.defineTask("finish", function (done) {
- finishJSTest();
done();
});

Powered by Google App Engine
This is Rietveld 408576698