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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-downmix8-2channel-input.html

Issue 2718563004: Convert more ScriptProcessorNode tests to testharness (Closed)
Patch Set: Address review comments. 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/ScriptProcessor/scriptprocessornode-downmix8-2channel-input.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-downmix8-2channel-input.html b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-downmix8-2channel-input.html
index cdf1127a8f0730a47addcc4b75feafa6a873c03f..e4f1b887ce1de57665e808c8091bff6e89971554 100644
--- a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-downmix8-2channel-input.html
+++ b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-downmix8-2channel-input.html
@@ -2,37 +2,33 @@
<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>
-<script type="text/javascript" src="../resources/scriptprocessornode-testing.js"></script>
+<script src="../resources/audit.js"></script>
+<script src="../resources/scriptprocessornode-testing-audit.js"></script>
</head>
<body>
-
-<div id="description"></div>
-<div id="console"></div>
-
<script>
-description("Tests downmixing an 8-channel source connected to a JavaScriptAudioNode with 2-channel input.");
-
-var sampleRate = 44100.0;
-var sourceChannels = 8;
-var inputChannels = 2;
-var outputChannels = 6;
-
-function runTest() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
- runJSNodeTest();
-}
-
-runTest();
+let audit = Audit.createTaskRunner();
+
+let sampleRate = 44100.0;
+let sourceChannels = 8;
+let inputChannels = 2;
+let outputChannels = 6;
+
+audit.define(
+ {
+ label: 'test',
+ description:
+ 'downmix 8-channel source to ScriprProcessNode with 2-channel input'
+ },
+ (task, should) => {
+ runJSNodeTest(should).then(() => task.done());
+ });
+
+audit.run();
</script>

Powered by Google App Engine
This is Rietveld 408576698