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

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

Issue 2675973003: Convert Oscillator sweep tests to testharness (Closed)
Patch Set: Move audit calls outside of tester 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-contexts.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-contexts.html b/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-contexts.html
index 5ae3776048ad81a375b1cfb4ea612d3549c95373..0adae970a476baeb34f2912f89468bbddb72675e 100644
--- a/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-contexts.html
+++ b/third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-contexts.html
@@ -2,15 +2,16 @@
<html>
<head>
<title>Test Oscillator Node: sawtooth</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/audit.js"></script>
<script src="../resources/buffer-loader.js"></script>
<script src="../resources/oscillator-testing.js"></script>
</head>
<body>
<script>
- description("Test Builtin Oscillator PeriodicWave Tables");
-
// Create an offline context with a sample rate that is very different from the sample rate
// used in the OscillatorTestingUtils. This will create a internal PeriodicWave objects for
// the Oscillator. This should not interfere with the oscillator test using a different
@@ -26,8 +27,7 @@
// The thresholds are experimentally determined.
tester.setThresholds({snr: 80.00, maxDiff: 4.06, diffCount: 15827});
- tester.runTest("sawtooth");
- successfullyParsed = true;
+ tester.runTest("sawtooth", "Sawtooth PeriodicWave Test");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698