Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / convolver-setBuffer-different-samplerate.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/audio-testing.js"></script>
5 <script src="../resources/js-test-pre.js"></script>
6 </head>
7
8 <body>
9 <script>
10 description("Tests that ConvolverNode buffer rate must match context rate.");
11
12 var context = new webkitOfflineAudioContext(1, 256, 44100);
13 var convolver = context.createConvolver();
14
15 shouldThrowErrorName("convolver.buffer = context.createBuffer(1, 256, 22050)", "NotSupportedError");
16 shouldNotThrow("convolver.buffer = context.createBuffer(1, 256, 44100)");
17
18 </script>
19
20 <script src="../resources/js-test-post.js"></script>
21 </body>
22 </html>