Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / webgl / data-view-crash.html
blobda9a7e3816b8ace23952fbf13308ac14a5dc3817
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <div id="description"></div>
7 <div id="console"></div>
9 <script>
10 description("Test that DataView does not crash with bad offset or length.");
12 var array = new Uint8Array([164, 112, 157, 63]);
13 var view;
14 shouldThrow("view = new DataView(array.buffer, -4500000000)");
15 shouldThrow("view = new DataView(array.buffer, -4500000000, 4500000000)");
16 var value = view ? view.getFloat32(0, true) : 0;
17 </script>
19 </body>
20 </html>