Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / decode-audio-data-too-short.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.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 window.jsTestIsAsync = true;
12
13 var context = new webkitAudioContext();
14 var request = new XMLHttpRequest();
15 request.open("GET", 'resources/media/too-short.m4a', true);
16 request.responseType = "arraybuffer";
17     
18 request.onload = function() {
19     context.decodeAudioData(request.response, finishJSTest, finishJSTest);
20 }
21 request.send();
22
23 </script>
24 </body>
25 </html>