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

Unified Diff: LayoutTests/webaudio/osc-square-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-square-sweep-snr.html
diff --git a/LayoutTests/webaudio/osc-square-sweep-snr.html b/LayoutTests/webaudio/osc-square-sweep-snr.html
new file mode 100644
index 0000000000000000000000000000000000000000..83f05df032ea3888e0d129f9c711e3f041c0ac0a
--- /dev/null
+++ b/LayoutTests/webaudio/osc-square-sweep-snr.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test Oscillator Node: square</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 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: 87.75, maxDiff: 3.63, diffCount: 6800});
+ tester.runTest("square");
+ successfullyParsed = true;
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/webaudio/osc-sine-sweep-snr-expected.txt ('k') | LayoutTests/webaudio/osc-square-sweep-snr-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698