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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/index-validation-crash-with-buffer-sub-data.html

Issue 1601093008: Remove duplicated WebGL layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <script src="resources/webgl-test.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9
10 <script>
11 description('Verifies that the index validation code which is within bufferSubDa ta does not crash.')
12
13 var gl = create3DContext();
14
15 var elementBuffer = gl.createBuffer();
16 gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, elementBuffer);
17 gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, 256, gl.STATIC_DRAW);
18 var data = new Uint8Array(127);
19 gl.bufferSubData(gl.ELEMENT_ARRAY_BUFFER, 63, data);
20 testPassed("bufferSubData, when buffer object was initialized with null, did not crash");
21 </script>
22
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698