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

Side by Side Diff: LayoutTests/fast/canvas/webgl/draw-elements-out-of-bounds.html

Issue 6486014: Merge 77956 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/webgl/draw-elements-out-of-bounds-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 <script src="resources/webgl-test.js"></script> 5 <script src="resources/webgl-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="description"></div> 8 <div id="description"></div>
9 <div id="console"></div> 9 <div id="console"></div>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 shouldGenerateGLError(context, context.INVALID_VALUE, "context.drawElements(cont ext.TRIANGLES, 0xffffffff, context.UNSIGNED_SHORT, 0)"); 118 shouldGenerateGLError(context, context.INVALID_VALUE, "context.drawElements(cont ext.TRIANGLES, 0xffffffff, context.UNSIGNED_SHORT, 0)");
119 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements( context.TRIANGLES, 0x7fffffff, context.UNSIGNED_SHORT, 0)"); 119 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements( context.TRIANGLES, 0x7fffffff, context.UNSIGNED_SHORT, 0)");
120 120
121 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T RIANGLES, 0, context.UNSIGNED_SHORT, 0)"); 121 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T RIANGLES, 0, context.UNSIGNED_SHORT, 0)");
122 122
123 // invalid operation with offset that's not a multiple of the type size 123 // invalid operation with offset that's not a multiple of the type size
124 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T RIANGLES, 6, context.UNSIGNED_SHORT, 0)"); 124 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T RIANGLES, 6, context.UNSIGNED_SHORT, 0)");
125 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements( context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1)"); 125 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements( context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1)");
126 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T RIANGLES, 6, context.UNSIGNED_SHORT, 2)"); 126 shouldGenerateGLError(context, context.NO_ERROR, "context.drawElements(context.T RIANGLES, 6, context.UNSIGNED_SHORT, 2)");
127 127
128 // invalid operation if no buffer is bound to ELEMENT_ARRAY_BUFFER
129 context.bindBuffer(context.ELEMENT_ARRAY_BUFFER, null);
130 shouldGenerateGLError(context, context.INVALID_OPERATION, "context.drawElements( context.TRIANGLES, 6, context.UNSIGNED_SHORT, 0)");
131
128 debug("") 132 debug("")
129 successfullyParsed = true; 133 successfullyParsed = true;
130 </script> 134 </script>
131 135
132 <script src="../../js/resources/js-test-post.js"></script> 136 <script src="../../js/resources/js-test-post.js"></script>
133 </body> 137 </body>
134 </html> 138 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/webgl/draw-elements-out-of-bounds-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698