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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-contexts.html

Issue 2599873003: Remove compatibility.js from WebAudio tests (Closed)
Patch Set: Rebasing Created 3 years, 11 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: sawtooth</title> 4 <title>Test Oscillator Node: sawtooth</title>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 <script src="../resources/compatibility.js"></script>
7 <script src="../resources/buffer-loader.js"></script> 6 <script src="../resources/buffer-loader.js"></script>
8 <script src="../resources/oscillator-testing.js"></script> 7 <script src="../resources/oscillator-testing.js"></script>
9 </head> 8 </head>
10 9
11 <body> 10 <body>
12 <script> 11 <script>
13 description("Test Builtin Oscillator PeriodicWave Tables"); 12 description("Test Builtin Oscillator PeriodicWave Tables");
14 13
15 // Create an offline context with a sample rate that is very different fro m the sample rate 14 // Create an offline context with a sample rate that is very different fro m the sample rate
16 // used in the OscillatorTestingUtils. This will create a internal Period icWave objects for 15 // used in the OscillatorTestingUtils. This will create a internal Period icWave objects for
17 // the Oscillator. This should not interfere with the oscillator test usi ng a different 16 // the Oscillator. This should not interfere with the oscillator test usi ng a different
18 // context with a different sample rate. 17 // context with a different sample rate.
19 18
20 var context = new OfflineAudioContext(1, 1, 3000); 19 var context = new OfflineAudioContext(1, 1, 3000);
21 var osc = context.createOscillator(); 20 var osc = context.createOscillator();
22 osc.type = "sawtooth"; 21 osc.type = "sawtooth";
23 osc = null; 22 osc = null;
24 23
25 // This test is identical to the test in osc-sawtooth-sweep-snr.html. 24 // This test is identical to the test in osc-sawtooth-sweep-snr.html.
26 var tester = OscillatorTestingUtils; 25 var tester = OscillatorTestingUtils;
27 26
28 // The thresholds are experimentally determined. 27 // The thresholds are experimentally determined.
29 tester.setThresholds({snr: 80.00, maxDiff: 4.06, diffCount: 15827}); 28 tester.setThresholds({snr: 80.00, maxDiff: 4.06, diffCount: 15827});
30 tester.runTest("sawtooth"); 29 tester.runTest("sawtooth");
31 successfullyParsed = true; 30 successfullyParsed = true;
32 </script> 31 </script>
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698