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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setTargetAtTime-limit.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-setTargetAtTime-limit.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setTargetAtTime-limit.html b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setTargetAtTime-limit.html
index a21c38d702435c3e8e49bc64e49643d56280713a..58a59e9725ff99b3a7681749551d6c0aeada0fbc 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setTargetAtTime-limit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-setTargetAtTime-limit.html
@@ -2,7 +2,8 @@
<html>
<head>
<title>Test setTargetAtTime Approach to Limit</title>
- <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/audioparam-testing.js"></script>
@@ -10,8 +11,6 @@
<body>
<script>
- description("Test setTargetAtTime Approach to Limit");
- window.jsTestIsAsync = true;
var audit = Audit.createTaskRunner();
@@ -141,15 +140,13 @@
actual.slice(tailFrame))
.containValues([options.v1]) && success;
- if (success)
- testPassed(message + " had the expected values.\n");
- else
- testFailed(message + " did not have the expected values.\n");
+ Should(message, success)
+ .summarize("had the expected values",
+ "did not have the expected values");
});
}
audit.defineTask("finish", function (done) {
- finishJSTest();
done();
});

Powered by Google App Engine
This is Rietveld 408576698