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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html

Issue 2667153002: Convert BiquadFilter response tests to testharness (Closed)
Patch Set: Address review comments 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/BiquadFilter/biquad-allpass-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/BiquadFilter/biquad-allpass.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
index 9305e2d883bc85a2a1b61b397b518838f015e767..2fb3260f6ef492d853435533b92d68988b8f19b8 100644
--- a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
+++ b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
@@ -2,46 +2,37 @@
<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 src="../resources/audit.js"></script>
<script src="../resources/biquad-filters.js"></script>
<script src="../resources/biquad-testing.js"></script>
</head>
<body>
-
-<div id="description"></div>
-<div id="console"></div>
-
<script>
-description("Tests Biquad allpass filter.");
+let audit = Audit.createTaskRunner();
+
+audit.define("test", function (task, should) {
+ task.describe("Biquad allpass filter");
-function runTest() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
// Create offline audio context.
- var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
+ let context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
- var filterParameters = [{cutoff : 0, q : 10, gain : 1 },
+ let filterParameters = [{cutoff : 0, q : 10, gain : 1 },
{cutoff : 1, q : 10, gain : 1 },
{cutoff : .5, q : 0, gain : 1 },
{cutoff : 0.25, q : 10, gain : 1 },
];
createTestAndRun(context, "allpass", {
+ should: should,
threshold: 3.9337e-8,
filterParameters: filterParameters
- });
-}
-
-runTest();
-successfullyParsed = true;
+ }).then(task.done.bind(task));
+});
+audit.run();
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698