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

Side by Side Diff: LayoutTests/fast/canvas/webgl/renderbuffer-initialization.html

Issue 48903019: Delete js-test-post.js. (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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 <script src="resources/webgl-test.js"></script> 4 <script src="resources/webgl-test.js"></script>
5 <script> 5 <script>
6 function runTest(gl, width, height) 6 function runTest(gl, width, height)
7 { 7 {
8 8
9 debug('Test whether the WebGL internal buffers have been initialized to 0.') ; 9 debug('Test whether the WebGL internal buffers have been initialized to 0.') ;
10 var totalBytes = width * height * 4; 10 var totalBytes = width * height * 4;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 canvas.width += 1; 72 canvas.width += 1;
73 canvas.height += 1; 73 canvas.height += 1;
74 runTest(gl, canvas.width, canvas.height); 74 runTest(gl, canvas.width, canvas.height);
75 75
76 // Testing buffer clearing won't change the clear values. 76 // Testing buffer clearing won't change the clear values.
77 var clearColor = gl.getParameter(gl.COLOR_CLEAR_VALUE); 77 var clearColor = gl.getParameter(gl.COLOR_CLEAR_VALUE);
78 shouldBe("clearColor", "[1, 0, 0, 1]"); 78 shouldBe("clearColor", "[1, 0, 0, 1]");
79 } else 79 } else
80 testFailed('canvas.getContext() failed'); 80 testFailed('canvas.getContext() failed');
81 </script> 81 </script>
82 <script src="../../js/resources/js-test-post.js"></script>
83 </body> 82 </body>
84 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698