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

Side by Side Diff: LayoutTests/fast/canvas/webgl/attrib-location-length-limits.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title>WebGL attrib location length tests</title> 5 <title>WebGL attrib location length tests</title>
6 <script src="../../js/resources/js-test-pre.js"></script> 6 <script src="../../../resources/js-test.js"></script>
7 <script src="resources/webgl-test.js"> </script> 7 <script src="resources/webgl-test.js"> </script>
8 <script src="resources/webgl-test-utils.js"> </script> 8 <script src="resources/webgl-test-utils.js"> </script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <canvas id="example" width="50" height="50"> 11 <canvas id="example" width="50" height="50">
12 There is supposed to be an example drawing here, but it's not important. 12 There is supposed to be an example drawing here, but it's not important.
13 </canvas> 13 </canvas>
14 <div id="description">Verify limits on the lengths of attrib locations.</div> 14 <div id="description">Verify limits on the lengths of attrib locations.</div>
15 <div id="console"></div> 15 <div id="console"></div>
16 <script id="goodVertexShader1" type="x-shader/x-vertex"> 16 <script id="goodVertexShader1" type="x-shader/x-vertex">
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 gl.bindAttribLocation(program, 0, "vPosition012345678901234567890123456789012345 67890123456789012345678901234567890123456789012345678901234567890123456789012345 67890123456789012345678901234567890123456789012345678901234567890123456789012345 6789012345678901234567890123456789012345678901234567"); 89 gl.bindAttribLocation(program, 0, "vPosition012345678901234567890123456789012345 67890123456789012345678901234567890123456789012345678901234567890123456789012345 67890123456789012345678901234567890123456789012345678901234567890123456789012345 6789012345678901234567890123456789012345678901234567");
90 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE); 90 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE);
91 91
92 debug("Attempt to fetch too-long attrib location should produce error"); 92 debug("Attempt to fetch too-long attrib location should produce error");
93 shouldBe('gl.getAttribLocation(program, "vPosition012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 0123456789012345678901234567890123456789012345678901234567")', '-1'); 93 shouldBe('gl.getAttribLocation(program, "vPosition012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 01234567890123456789012345678901234567890123456789012345678901234567890123456789 0123456789012345678901234567890123456789012345678901234567")', '-1');
94 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE); 94 wtu.glErrorShouldBe(gl, gl.INVALID_VALUE);
95 95
96 </script> 96 </script>
97 </body> 97 </body>
98 </html> 98 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698