Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: LayoutTests/fast/canvas/webgl/data-view-crash.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <div id="description"></div> 6 <div id="description"></div>
7 <div id="console"></div> 7 <div id="console"></div>
8 8
9 <script> 9 <script>
10 description("Test that DataView does not crash with bad offset or length."); 10 description("Test that DataView does not crash with bad offset or length.");
11 11
12 var array = new Uint8Array([164, 112, 157, 63]); 12 var array = new Uint8Array([164, 112, 157, 63]);
13 var view; 13 var view;
14 shouldThrow("view = new DataView(array.buffer, -4500000000)"); 14 shouldThrow("view = new DataView(array.buffer, -4500000000)");
15 shouldThrow("view = new DataView(array.buffer, -4500000000, 4500000000)"); 15 shouldThrow("view = new DataView(array.buffer, -4500000000, 4500000000)");
16 var value = view ? view.getFloat32(0, true) : 0; 16 var value = view ? view.getFloat32(0, true) : 0;
17 </script> 17 </script>
18 18
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/webgl/context-release-upon-reload.html ('k') | LayoutTests/fast/canvas/webgl/data-view-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698