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

Side by Side Diff: LayoutTests/fast/canvas/canvas-createImageBitmap-recursive.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <script> 6 <script>
7 description("Ensure correct behavior of drawImage with ImageBitmaps constructed from ImageBitmaps that are constructed from images (not pinned to memory) and ca nvases (pinned to memory)."); 7 description("Ensure correct behavior of drawImage with ImageBitmaps constructed from ImageBitmaps that are constructed from images (not pinned to memory) and ca nvases (pinned to memory).");
8 8
9 window.jsTestIsAsync = true; 9 window.jsTestIsAsync = true;
10 10
11 function shouldBeFilled(x, y, w, h) { 11 function shouldBeFilled(x, y, w, h) {
12 shouldBeGreen(x+2, y+2); 12 shouldBeGreen(x+2, y+2);
13 shouldBeGreen(x+w-2, y+h-2); 13 shouldBeGreen(x+w-2, y+h-2);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 clearContext(ctx); 129 clearContext(ctx);
130 ctx.drawImage(imageBitmap, x1, y1, w1, h1, 0, 0, 50, 50); 130 ctx.drawImage(imageBitmap, x1, y1, w1, h1, 0, 0, 50, 50);
131 shouldBeFilled(0, 0, 50, 50); 131 shouldBeFilled(0, 0, 50, 50);
132 } 132 }
133 } 133 }
134 134
135 </script> 135 </script>
136 </body> 136 </body>
137 </html> 137 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698