OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html lang="en"> | 2 <html lang="en"> |
3 <head> | 3 <head> |
4 <title>createPattern repeat test</title> | 4 <title>createPattern repeat test</title> |
5 <style> canvas { border:solid #000 } </style> | 5 <style> canvas { border:solid #000 } </style> |
6 <script> | 6 <script> |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.dumpAsText(true); | 8 testRunner.dumpAsTextWithPixelResults(); |
9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
10 } | 10 } |
11 window.onload = function(){ | 11 window.onload = function(){ |
12 var i = new Image(); | 12 var i = new Image(); |
13 i.src = "resources/apple.gif"; | 13 i.src = "resources/apple.gif"; |
14 i.onload = function() { | 14 i.onload = function() { |
15 var ctx = document.getElementsByTagName('canvas')[0].getContext('2d'); | 15 var ctx = document.getElementsByTagName('canvas')[0].getContext('2d'); |
16 var p; | 16 var p; |
17 | 17 |
18 //ctx.strokeWidth(1.0); | 18 //ctx.strokeWidth(1.0); |
(...skipping 25 matching lines...) Expand all Loading... |
44 testRunner.notifyDone(); | 44 testRunner.notifyDone(); |
45 } | 45 } |
46 } | 46 } |
47 </script> | 47 </script> |
48 </head> | 48 </head> |
49 <body> | 49 <body> |
50 <p>There should be one big square below containing four squares. Top left squa
re should be filled with 3 rows of 2 and bit Apple images. Top right square shou
ld be 2 and a bit rows with one Apple image column along the left edge of the sq
uare. Bottom left square should be one row with three Apple images along the top
of the square. Bottom right square should be one Apple image in top left corner
.</p> | 50 <p>There should be one big square below containing four squares. Top left squa
re should be filled with 3 rows of 2 and bit Apple images. Top right square shou
ld be 2 and a bit rows with one Apple image column along the left edge of the sq
uare. Bottom left square should be one row with three Apple images along the top
of the square. Bottom right square should be one Apple image in top left corner
.</p> |
51 <p><canvas height="330" width="330"></canvas></p> | 51 <p><canvas height="330" width="330"></canvas></p> |
52 </body> | 52 </body> |
53 </html> | 53 </html> |
OLD | NEW |