Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / convolver-setBuffer-null.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 <body>
8 <script>
9 description("Tests that ConvolverNode impulse response buffer can be set to null.");
10
11 var context = new webkitAudioContext();
12 var conv = context.createConvolver();
13
14 shouldNotThrow("conv.buffer = null");
15 shouldBe("conv.buffer", "null");
16
17 shouldThrow("conv.buffer = document");
18 shouldBe("conv.buffer", "null");
19 </script>
20 <script src="../resources/js-test-post.js"></script>
21 </body>
22 </html>