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

Unified Diff: LayoutTests/webaudio/osc-sawtooth-sweep-snr.html

Issue 720293002: Replace oscillator tests with more robust tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refactor according to review Created 6 years, 1 month 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: LayoutTests/webaudio/osc-sawtooth-sweep-snr.html
diff --git a/LayoutTests/webaudio/osc-sawtooth-sweep-snr.html b/LayoutTests/webaudio/osc-sawtooth-sweep-snr.html
new file mode 100644
index 0000000000000000000000000000000000000000..b5606f5013dec82e1469e488de0ffc4bf218b0e8
--- /dev/null
+++ b/LayoutTests/webaudio/osc-sawtooth-sweep-snr.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test Oscillator Node: sawtooth</title>
+ <script src="resources/compatibility.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 Sawtooth Oscillator with Exponential Sweep");
+
+ var tester = OscillatorTestingUtils;
+
+ // The thresholds are experimentally determined.
+ tester.setThresholds({snr: 83.00, maxDiff: 3.18, diffCount: 4100});
+ tester.runTest("sawtooth");
+ successfullyParsed = true;
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/webaudio/osc-custom-sweep-snr-expected.txt ('k') | LayoutTests/webaudio/osc-sawtooth-sweep-snr-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698