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

Side by Side Diff: extra/simulated-attrib-0-bug-test.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
« no previous file with comments | « extra/out-of-vram.html ('k') | extra/slow-shader-example.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Simulated Attrib 0 Bug Test</title>
6 <script src="../resources/js-test-pre.js"></script>
7 <script src="../conformance/resources/webgl-test.js"></script>
8 </head>
9 <body>
10 <div>Simulated Attrib 0 Bug Test</div>
11 <div id="description"></div>
12 <div id="console"></div>
13 <script>
14 var context = create3DContext();
15 var program = loadStandardProgram(context);
16
17 context.useProgram(program);
18 debug("This line attempts to draw with 0x7FFFFFFF triangles with attrib 0 off");
19 debug("A buggy simulated attrib 0 impl will probably mult 0x7FFFFFFF * sizeof(ve c4)");
20 shouldBe("context.drawArrays(context.TRIANGLES, 0, 0x7fffffff);", "undefined");
21 debug("This line attempts to draw with 0x7ffffff triangles.");
22 debug("A buggy simulated attrib 0 impl will probably pass 0x7FFFFFF0 to glBuffer Data and then not check that it failed");
23 shouldBe("context.drawArrays(context.TRIANGLES, 0, 0x7ffffff);", "undefined");
24 debug("")
25 debug("NOTE!: You may not see any manifestation here. Check your impl for these issues");
26 </script>
27 </body>
28 </html>
29
OLDNEW
« no previous file with comments | « extra/out-of-vram.html ('k') | extra/slow-shader-example.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698