[WebIDL] Enable strict type checking for nullable attribute setters of wrapper types
[WebKit-https.git] / LayoutTests / webaudio / decode-audio-data-too-short.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script type="text/javascript" src="resources/audio-testing.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Test that decoding an audio file which is too short does not cause a crash.");
10
11 if (window.testRunner) {
12     testRunner.dumpAsText();
13     testRunner.waitUntilDone();
14 }
15
16 window.jsTestIsAsync = true;
17
18 var context = new webkitAudioContext();
19 var request = new XMLHttpRequest();
20 request.open("GET", 'resources/media/too-short.m4a', true);
21 request.responseType = "arraybuffer";
22     
23 request.onload = function() {
24     context.decodeAudioData(request.response, finishJSTest, finishJSTest);
25 }
26 request.send();
27
28 </script>
29 <script src="../resources/js-test-post.js"></script>
30 </body>
31 </html>