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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/uniform-array-length-overflow.html

Issue 2447493002: Removed some duplicate layout tests under fast/canvas/webgl (Closed)
Patch Set: Created 4 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
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 array conversion code for WebGLRenderingContext.u niform* does not crash.");
12
13 array = [ ];
14 for (var i = 0; i < 1 << 15; ++i)
15 array[i] = 0x0c0c0c0c;
16 array.length = 0x80000000;
17
18 context = create3DContext();
19 intProgram = loadProgram(context, "resources/intArrayUniformShader2.vert", "reso urces/noopUniformShader.frag");
20 floatProgram = loadProgram(context, "resources/floatArrayUniformShader.vert", "r esources/noopUniformShader.frag");
21 intLocation = context.getUniformLocation(intProgram, "u_ints");
22 floatLocation = context.getUniformLocation(floatProgram, "u_floats");
23
24 context.useProgram(intProgram);
25 try {
26 context.uniform4iv(intLocation, array);
27 } catch (e) { }
28
29 context.useProgram(floatProgram);
30 try {
31 context.uniform4fv(floatLocation, array);
32 } catch (e) { }
33 </script>
34
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698