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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-normalization.html

Issue 2672093002: Convert PeriodicWave Audit tests to testharness (Closed)
Patch Set: Clean up. Created 3 years, 10 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/PeriodicWave/periodicwave-normalization.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-normalization.html b/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-normalization.html
index 0db672db84d5e26edef473a5abed813c4935f282..3673d54cda35d7cefd087b505008d554c97578e4 100644
--- a/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-normalization.html
+++ b/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-normalization.html
@@ -2,16 +2,14 @@
<html>
<head>
<title>Test PeriodicWave Normalization</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 PeriodicWave Normalization");
- window.jsTestIsAsync = true;
-
var sampleRate = 48000;
var renderFrames = 6000;
var context;
@@ -210,24 +208,10 @@
var test = testSet[k];
audit.defineTask(actualTestName(test.name, k), defineTest(test));
}
-
- // Explicitly define the last test to finish up everything.
- audit.defineTask(actualTestName("finish-tests", testSet.length), function (done) {
- finishJSTest();
- done();
- });
}
- // Run all of the tests defined in testSet.
- function runAuditTests() {
- var tests = testSet.map(function (value, index) {
- return actualTestName(value.name, index);
- }).concat(actualTestName("finish-tests", testSet.length));
- audit.runTasks.apply(audit, tests);
- };
-
defineTasks();
- runAuditTests();
+ audit.runTasks();
successfullyParsed = true;
</script>

Powered by Google App Engine
This is Rietveld 408576698