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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/AudioBuffer/audiobuffer.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 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="../resources/audit-util.js"></script> 5 <script src="../resources/audit-util.js"></script>
6 <script src="../resources/audio-testing.js"></script> 6 <script src="../resources/audio-testing.js"></script>
7 <script src="../resources/compatibility.js"></script>
8 </head> 7 </head>
9 <body> 8 <body>
10 <script> 9 <script>
11 description("Basic tests for AudioBuffer."); 10 description("Basic tests for AudioBuffer.");
12 11
13 var sampleRate = 44100.0 12 var sampleRate = 44100.0
14 var lengthInSeconds = 2; 13 var lengthInSeconds = 2;
15 var numberOfChannels = 4; 14 var numberOfChannels = 4;
16 15
17 var context = new AudioContext(); 16 var context = new AudioContext();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 var expectedDuration = 1000/24576; 54 var expectedDuration = 1000/24576;
56 55
57 if (buffer2.duration == expectedDuration) 56 if (buffer2.duration == expectedDuration)
58 testPassed("duration has expected accuracy."); 57 testPassed("duration has expected accuracy.");
59 else 58 else
60 testFailed("duration is " + buffer2.duration + " sec instead of " + expected Duration + " sec."); 59 testFailed("duration is " + buffer2.duration + " sec instead of " + expected Duration + " sec.");
61 </script> 60 </script>
62 61
63 </body> 62 </body>
64 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698