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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping-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/AudioParam/audioparam-automation-clamping.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping.html b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping.html
index d7caa0555d11eb72d290947668020f8b7348a976..822cda7c48a1eca9b8d7ab22ec7df1bfe3b5b2a4 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping.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>
<title>Test Clamping of Automations</title>
@@ -9,8 +10,6 @@
<body>
<script>
- description("Test Clamping of Automations.");
- window.jsTestIsAsync = true;
// Some arbitrary sample rate for the offline context.
var sampleRate = 48000;
@@ -94,18 +93,14 @@
success == Should("Actual Clamp end",
actualClampEnd).beGreaterThanOrEqualTo(clampEndFrame) && success;
- if (success)
- testPassed("Clamping of BiquadFilter.frequency automation performed correctly.")
- else
- testFailed(
- "Clamping of BiquadFilter.frequency automation performed incorrectly.")
-
+ Should("Clamping of BiquadFilter.frequency automation performed",
+ success)
+ .summarize("correctly", "incorrectly");
}).then(done);
});
// All done!
audit.defineTask("finish", function (done) {
- finishJSTest();
done();
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-automation-clamping-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698