Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| 11 // Make sure we don't crash when giving 0 as number of frames. | 11 // Make sure we don't crash when giving 0 as number of frames. |
| 12 shouldThrow("new OfflineAudioContext(1, 0, 44100)"); | 12 shouldThrow("new OfflineAudioContext(1, 0, 44100)"); |
| 13 // Make sure we don't throw exception supported ranges of sample rate with min/m ax. | |
|
Raymond Toy
2014/09/04 17:27:20
Fix up phrasing:
// Make sure we don't throw exce
KhNo
2014/09/05 05:03:25
Done.
| |
| 14 shouldNotThrow("new OfflineAudioContext(2, 512, 3000)"); | |
| 15 shouldNotThrow("new OfflineAudioContext(2, 512, 192000)"); | |
| 16 // Make sure we don't throw exception supported ranges of sample rate. | |
|
Raymond Toy
2014/09/04 17:27:20
Probably don't need this if you change the comment
KhNo
2014/09/05 05:03:25
Done.
| |
| 17 shouldNotThrow("new OfflineAudioContext(2, 512, 8000)"); | |
| 18 shouldNotThrow("new OfflineAudioContext(2, 512, 11025)"); | |
| 19 shouldNotThrow("new OfflineAudioContext(2, 512, 22050)"); | |
| 20 shouldNotThrow("new OfflineAudioContext(2, 512, 44100)"); | |
| 21 shouldNotThrow("new OfflineAudioContext(2, 512, 48000)"); | |
| 22 shouldNotThrow("new OfflineAudioContext(2, 512, 88200)"); | |
| 23 shouldNotThrow("new OfflineAudioContext(2, 512, 96000)"); | |
| 13 </script> | 24 </script> |
| 14 </body> | 25 </body> |
| 15 </html> | 26 </html> |
| OLD | NEW |