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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-method-chaining.html

Issue 2638203002: Convert AudioNode Audit tests to testharness (Closed)
Patch Set: 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/AudioNode/audionode-connect-method-chaining-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/AudioNode/audionode-connect-method-chaining.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-method-chaining.html b/third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-method-chaining.html
index 5b27e3044381168408bac1c3527286b0c8346850..b72f72c6431157c2e3478b3b9f3d80474197eb73 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-method-chaining.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-method-chaining.html
@@ -2,15 +2,14 @@
<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>
</head>
<body>
<script>
- description('Test method chaining feature of AudioNode.connect() method.');
- window.jsTestIsAsync = true;
// AudioNode dictionary with associated arguments.
var nodeDictionary = [
@@ -32,13 +31,12 @@
function verifyReturnedNode(config) {
- if (config.destination === config.returned) {
- testPassed('The return value of ' + config.desc + ' matches the destination ' +
- config.returned.constructor.name + '.');
- } else {
- testFailed('The return value of ' + config.desc + ' does NOT match the destination ' +
- config.destination.constructor.name + '.');
- }
+ Should('The return value of ' + config.desc +
+ ' matches the destination ' +
+ config.returned.constructor.name,
+ config.destination === config.returned
+ )
+ .beEqualTo(true);
}
// Test utility for batch method checking: in order to test 3 method
@@ -156,7 +154,6 @@
});
audit.defineTask('finish', function (done) {
- finishJSTest();
done();
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode-connect-method-chaining-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698