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

Side by Side Diff: conformance/buffers/index-validation-crash-with-buffer-sub-data.html

Issue 8342021: Add webgl conformance tests r15841. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/webgl/sdk/tests/
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6 <!DOCTYPE html>
7 <html>
8 <head>
9 <meta charset="utf-8">
10 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
11 <script src="../../resources/js-test-pre.js"></script>
12 <script src="../resources/webgl-test.js"></script>
13 </head>
14 <body>
15 <div id="description"></div>
16 <div id="console"></div>
17
18 <script>
19 description('Verifies that the index validation code which is within bufferSubDa ta does not crash.')
20
21 var gl = create3DContext();
22
23 var elementBuffer = gl.createBuffer();
24 gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, elementBuffer);
25 gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, 256, gl.STATIC_DRAW);
26 var data = new Uint8Array(127);
27 gl.bufferSubData(gl.ELEMENT_ARRAY_BUFFER, 63, data);
28 testPassed("bufferSubData, when buffer object was initialized with null, did not crash");
29
30 successfullyParsed = true;
31 </script>
32
33 <script src="../../resources/js-test-post.js"></script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698