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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html

Issue 2675973003: Convert Oscillator sweep tests to testharness (Closed)
Patch Set: Update periodicwave-contexts test 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/Oscillator/osc-square-sweep-snr.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
index baa4eca96521dfd0bf2fb2a8375eb65f9c045d8a..7c6e8058785213f3581920ced8cff1ff94af5750 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
@@ -2,22 +2,21 @@
<html>
<head>
<title>Test Oscillator Node: square</title>
+ <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/js-test.js"></script>
<script src="../resources/oscillator-testing.js"></script>
</head>
<body>
<script>
- description("Test Square Oscillator with Exponential Sweep");
-
- // Thresholds for verifying the test passes. The thresholds are experimentally determined.
-
var tester = OscillatorTestingUtils;
+
// The thresholds are experimentally determined.
tester.setThresholds({snr: 81.57, maxDiff: 7.26, diffCount: 18260});
- tester.runTest("square");
- successfullyParsed = true;
+ tester.runTest("square", "Square Oscillator with Exponential Sweep");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698