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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sine-sweep-snr.html

Issue 2766883002: Allow status = 0 when XHR is completed in Audit.loadFileFromUrl(). (Closed)
Patch Set: Fixed threshold after revert Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test Oscillator Node: sine</title> 4 <title>Test Oscillator Node: sine</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit-util.js"></script> 7 <script src="../resources/audit-util.js"></script>
8 <script src="../resources/audit.js"></script> 8 <script src="../resources/audit.js"></script>
9 <script src="../resources/buffer-loader.js"></script> 9 <script src="../resources/buffer-loader.js"></script>
10 <script src="../resources/oscillator-testing.js"></script> 10 <script src="../resources/oscillator-testing.js"></script>
11 </head> 11 </head>
12 12
13 <body> 13 <body>
14 <script> 14 <script>
15 let audit = Audit.createTaskRunner(); 15 let audit = Audit.createTaskRunner();
16 let tester = OscillatorTestingUtils; 16 let tester = OscillatorTestingUtils;
17 17
18 audit.define("test", (task, should) => { 18 audit.define("test", (task, should) => {
19 let context = new OfflineAudioContext(1, tester.sampleRate * 19 let context = new OfflineAudioContext(1, tester.sampleRate *
20 tester.lengthInSeconds, tester.sampleRate); 20 tester.lengthInSeconds, tester.sampleRate);
21 21
22 // The thresholds are experimentally determined. 22 // The thresholds are experimentally determined.
23 tester.setThresholds({ 23 tester.setThresholds({
24 snr: 1000, 24 snr: 94.001,
25 maxDiff: 0, 25 maxDiff: 0.00006
26 diffCount: 0
27 }); 26 });
28 tester.runTest(context, "sine", 27 tester.runTest(context, "sine",
29 "Sine Oscillator with Exponential Sweep", 28 "Sine Oscillator with Exponential Sweep", task, should);
30 task, should);
31 }); 29 });
32 30
33 audit.run(); 31 audit.run();
34 </script> 32 </script>
35 </body> 33 </body>
36 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698