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

Side by Side Diff: LayoutTests/fast/canvas/canvas-ellipse-zero-lineto.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></head> 3 <head></head>
4 <body> 4 <body>
5 <canvas id="mycanvas" width="400" height="400"></canvas> 5 <canvas id="mycanvas" width="400" height="400"></canvas>
6 <script src="../js/resources/js-test-pre.js"></script> 6 <script src="../../resources/js-test.js"></script>
7 <script> 7 <script>
8 description("This tests checks that ellipse can draw lines correctly in edge cas es."); 8 description("This tests checks that ellipse can draw lines correctly in edge cas es.");
9 var canvas = document.getElementById('mycanvas'); 9 var canvas = document.getElementById('mycanvas');
10 var ctx = canvas.getContext('2d'); 10 var ctx = canvas.getContext('2d');
11 11
12 var zero = 0; 12 var zero = 0;
13 ctx.lineWidth = 5; 13 ctx.lineWidth = 5;
14 ctx.fillStyle = 'rgb(255, 255, 255)'; 14 ctx.fillStyle = 'rgb(255, 255, 255)';
15 ctx.strokeStyle = 'rgb(0, 0, 0)'; 15 ctx.strokeStyle = 'rgb(0, 0, 0)';
16 ctx.fillRect(0, 0, canvas.width, canvas.height); 16 ctx.fillRect(0, 0, canvas.width, canvas.height);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 imageData = ctx.getImageData(235, 160, 1, 1); 304 imageData = ctx.getImageData(235, 160, 1, 1);
305 shouldBe("imageData.data[1]", "0"); 305 shouldBe("imageData.data[1]", "0");
306 imageData = ctx.getImageData(210, 150, 1, 1); 306 imageData = ctx.getImageData(210, 150, 1, 1);
307 shouldBe("imageData.data[1]", "0"); 307 shouldBe("imageData.data[1]", "0");
308 imageData = ctx.getImageData(252, 156, 1, 1); 308 imageData = ctx.getImageData(252, 156, 1, 1);
309 shouldBe("imageData.data[1]", "0"); 309 shouldBe("imageData.data[1]", "0");
310 310
311 </script> 311 </script>
312 </body> 312 </body>
313 </html> 313 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-ellipse-360-winding.html ('k') | LayoutTests/fast/canvas/canvas-fill-rule.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698