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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html

Issue 2013623002: Set channelCount and maxChannelCount correctly for OfflineAudioContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt » ('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/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("Tests the OfflineAudioContext constructor"); 9 description("Tests the OfflineAudioContext constructor");
10 10
(...skipping 16 matching lines...) Expand all
27 shouldNotThrow("context = new OfflineAudioContext(2, 512, 48000)"); 27 shouldNotThrow("context = new OfflineAudioContext(2, 512, 48000)");
28 shouldBeEqualToNumber("context.length", 512); 28 shouldBeEqualToNumber("context.length", 512);
29 shouldNotThrow("context = new OfflineAudioContext(2, 512, 88200)"); 29 shouldNotThrow("context = new OfflineAudioContext(2, 512, 88200)");
30 shouldBeEqualToNumber("context.length", 512); 30 shouldBeEqualToNumber("context.length", 512);
31 // Make sure length is read-only. 31 // Make sure length is read-only.
32 shouldNotThrow("context.length = 99"); 32 shouldNotThrow("context.length = 99");
33 shouldBeEqualToNumber("context.length", 512); 33 shouldBeEqualToNumber("context.length", 512);
34 shouldNotThrow("context = new OfflineAudioContext(2, 512, 96000)"); 34 shouldNotThrow("context = new OfflineAudioContext(2, 512, 96000)");
35 // Make sure we throw exceptions for non-finite sample rates. 35 // Make sure we throw exceptions for non-finite sample rates.
36 shouldThrow("context = new OfflineAudioContext(1, 0, NaN)"); 36 shouldThrow("context = new OfflineAudioContext(1, 0, NaN)");
37 shouldThrow("context = new OfflineAudioContext(1, 0, Infinite)"); 37 shouldThrow("context = new OfflineAudioContext(1, 0, Infinity)");
38 // Verify channel counts and other destination attributes are set correctly.
39 shouldNotThrow("context = new OfflineAudioContext(7, 512, 48000)");
40 shouldBeEqualToNumber("context.destination.channelCount", 7);
41 shouldBeEqualToNumber("context.destination.maxChannelCount", 7);
42 shouldBeEqualToString("context.destination.channelCountMode", "explicit");
43 shouldBeEqualToString("context.destination.channelInterpretation", "speakers");
38 </script> 44 </script>
39 </body> 45 </body>
40 </html> 46 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698