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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audiobuffer.html

Issue 2567713002: Separating layout test utilities into audit-util.js (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/audiobuffer-copy-channel.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
6 <script src="resources/compatibility.js"></script> 7 <script src="resources/compatibility.js"></script>
7 </head> 8 </head>
8 <body> 9 <body>
9 <script> 10 <script>
10 description("Basic tests for AudioBuffer."); 11 description("Basic tests for AudioBuffer.");
11 12
12 var sampleRate = 44100.0 13 var sampleRate = 44100.0
13 var lengthInSeconds = 2; 14 var lengthInSeconds = 2;
14 var numberOfChannels = 4; 15 var numberOfChannels = 4;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 var expectedDuration = 1000/24576; 55 var expectedDuration = 1000/24576;
55 56
56 if (buffer2.duration == expectedDuration) 57 if (buffer2.duration == expectedDuration)
57 testPassed("duration has expected accuracy."); 58 testPassed("duration has expected accuracy.");
58 else 59 else
59 testFailed("duration is " + buffer2.duration + " sec instead of " + expected Duration + " sec."); 60 testFailed("duration is " + buffer2.duration + " sec instead of " + expected Duration + " sec.");
60 </script> 61 </script>
61 62
62 </body> 63 </body>
63 </html> 64 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/audiobuffer-copy-channel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698