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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-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-upmix2-8channel-input.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html
index e390c67a85060c0275d6820b01de09b935e49743..33f653582218623b8993bd6eacdb88bb603e4093 100644
--- a/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html
+++ b/third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html
@@ -2,35 +2,34 @@
<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 upmixing a 2-channel source connected to a JavaScriptAudioNode with 8-channel input.");
-
-var sampleRate = 44100.0;
-var sourceChannels = 2;
-var inputChannels = 8;
-var outputChannels = 6;
-
-window.jsTestIsAsync = true;
-
-function runTest() {
- if (window.testRunner)
- testRunner.dumpAsText();
- runJSNodeTest();
-}
-
-runTest();
-
+let audit = Audit.createTaskRunner();
+
+let sampleRate = 44100.0;
+let sourceChannels = 2;
+let inputChannels = 8;
+let outputChannels = 6;
+
+audit.define(
+ {
+ label: 'test',
+ description:
+ 'upmix a 2-channel source ScriptProcessorNode with 8-channel output'
+ },
+ (task, should) => {
+ runJSNodeTest(should).then(() => task.done());
+ ;
+ });
+
+audit.run();
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698