| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/> | 4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/> |
| 5 <script src="resources/audio-testing.js"></script> | 5 <script src="resources/audio-testing.js"></script> |
| 6 <script src="../fast/js/resources/js-test-pre.js"></script> | 6 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 7 <script src="resources/biquad-testing.js"></script> | 7 <script src="resources/biquad-testing.js"></script> |
| 8 </head> | 8 </head> |
| 9 | 9 |
| 10 <body> | 10 <body> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 shouldThrow("new webkitOfflineAudioContext(1, 100, 1)"); | 114 shouldThrow("new webkitOfflineAudioContext(1, 100, 1)"); |
| 115 shouldThrow("new webkitOfflineAudioContext(1, 100, 1e6)"); | 115 shouldThrow("new webkitOfflineAudioContext(1, 100, 1e6)"); |
| 116 | 116 |
| 117 // WaveShaper types | 117 // WaveShaper types |
| 118 node = context.createWaveShaper(); | 118 node = context.createWaveShaper(); |
| 119 shouldThrow("node.oversample = '9x'"); | 119 shouldThrow("node.oversample = '9x'"); |
| 120 | 120 |
| 121 // Start/stop for AudioBufferSourceNodes | 121 // Start/stop for AudioBufferSourceNodes |
| 122 buffer = context.createBuffer(1,1, context.sampleRate); | 122 buffer = context.createBuffer(1,1, context.sampleRate); |
| 123 shouldNotThrow("source = context.createBufferSource()"); | 123 shouldNotThrow("source = context.createBufferSource()"); |
| 124 source.buffer = buffer; | 124 shouldNotThrow("source.buffer = buffer"); |
| 125 shouldNotThrow("source.start()"); | 125 shouldNotThrow("source.start()"); |
| 126 shouldNotThrow("source.stop()"); | 126 shouldNotThrow("source.stop()"); |
| 127 | 127 |
| 128 // It's valid to start a source that has no associated buffer. |
| 129 shouldNotThrow("source = context.createBufferSource()"); |
| 130 shouldNotThrow("source.start()"); |
| 131 shouldNotThrow("source.stop()"); |
| 132 |
| 128 // Start/stop for OscillatorNodes | 133 // Start/stop for OscillatorNodes |
| 129 shouldNotThrow("source = context.createOscillator()"); | 134 shouldNotThrow("source = context.createOscillator()"); |
| 130 shouldNotThrow("source.start()"); | 135 shouldNotThrow("source.start()"); |
| 131 shouldNotThrow("source.stop()"); | 136 shouldNotThrow("source.stop()"); |
| 132 } | 137 } |
| 133 | 138 |
| 134 runTest(); | 139 runTest(); |
| 135 successfullyParsed = true; | 140 successfullyParsed = true; |
| 136 | 141 |
| 137 </script> | 142 </script> |
| 138 <script src="../fast/js/resources/js-test-post.js"></script> | 143 <script src="../fast/js/resources/js-test-post.js"></script> |
| 139 </body> | 144 </body> |
| 140 </html> | 145 </html> |
| OLD | NEW |