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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-linearRamp-value-attribute.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-linearRamp-value-attribute.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-linearRamp-value-attribute.html b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-linearRamp-value-attribute.html
index fd27bbc6a6d19ad351fced187961c1b3bf278d87..8e58e690e6f7ee0949f2fa0dc5390c05917e0dd9 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-linearRamp-value-attribute.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-linearRamp-value-attribute.html
@@ -2,15 +2,14 @@
<html>
<head>
<title>Test linearRampToValue Updates the Param Value</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>
</head>
<body>
<script>
- description("Test linearRampToValue Updates the Param Value");
- window.jsTestIsAsync = true;
var renderQuantumSize = 128;
// Should be a power of two to get rid of rounding errors when converting between time and
@@ -70,15 +69,13 @@
// Rock and roll!
source.start();
context.startRendering().then(function (result) {
- if (success)
- testPassed("linearRampToValue properly set the AudioParam value.");
- else
- testFailed("linearRampToValue did not properly set the AudioParam value.");
+ Should("linearRampToValue", success)
+ .summarize("properly set the AudioParam value",
+ "did not properly set the AudioParam value");
}).then(done);
});
audit.defineTask("finish", function (done) {
- finishJSTest();
done();
});

Powered by Google App Engine
This is Rietveld 408576698