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

Unified Diff: LayoutTests/webaudio/osc-triangle-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-triangle-sweep-snr.html
diff --git a/LayoutTests/webaudio/osc-triangle-sweep-snr.html b/LayoutTests/webaudio/osc-triangle-sweep-snr.html
new file mode 100644
index 0000000000000000000000000000000000000000..d5d2cc869a0bf3c0b0e75a6851ade484828baa00
--- /dev/null
+++ b/LayoutTests/webaudio/osc-triangle-sweep-snr.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Test Oscillator Node: triangle</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 Triangle Oscillator with Exponential Sweep");
+
+ // Thresholds for verifying the test passes. The thresholds are experimentally determined.
+
+ var tester = OscillatorTestingUtils;
+ tester.setThresholds({snr: 84.85, maxDiff: 2.50, diffCount: 5100});
+ tester.runTest("triangle");
+ successfullyParsed = true;
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/webaudio/osc-square-sweep-snr-expected.txt ('k') | LayoutTests/webaudio/osc-triangle-sweep-snr-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698