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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-downmix.html

Issue 2595633002: Convert Analyser tests to use testharness (Closed)
Patch Set: Remove blank line Created 4 years 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/Analyser/realtimeanalyser-downmix.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-downmix.html b/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-downmix.html
index 2df48d44f7ed2d11882fbf8de71bf9543c157b2f..6f919b0d7ff7b69f2144a2aa365b8d3219c50d21 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-downmix.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-downmix.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/compatibility.js"></script>
<script src="../resources/audit-util.js"></script>
<script src="../resources/audio-testing.js"></script>
@@ -12,9 +13,6 @@
<body>
<script>
- description("Test AnalyserNode Downmixing");
- window.jsTestIsAsync = true;
-
var sampleRate = 44100;
var renderFrames = 2048;
@@ -52,7 +50,6 @@
}
audit.defineTask("finish", function (done) {
- finishJSTest();
done();
});
@@ -115,10 +112,9 @@
floatRelError: options.floatRelError,
}) && success;
- if (success)
- testPassed(prefix + " downmixed correctly.\n");
- else
- testFailed(prefix + " not downmixed correctly.\n");
+ Should(prefix, success)
+ .summarize("downmixed correctly.",
+ "no downmixed correctly.");
});
}
</script>

Powered by Google App Engine
This is Rietveld 408576698