OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 | 6 |
7 description("Verifies createPattern using a source image that is a canva
s 40k pixels wide."); | 7 description("Verifies createPattern using a source image that is a canva
s 40k pixels wide."); |
8 // This test does not currently succeed because skia does not handle | 8 // This test does not currently succeed because skia does not handle |
9 // canvases more than 32k pixels wide. For now, this test serves the | 9 // canvases more than 32k pixels wide. For now, this test serves the |
10 // purpose of verifying that this use case does not crash the browser. | 10 // purpose of verifying that this use case does not crash the browser. |
11 // Crasher bug: crbug.com/281504 | 11 // Crasher bug: crbug.com/281504 |
12 | 12 |
13 var canvas = document.createElement('canvas'); | 13 var canvas = document.createElement('canvas'); |
14 canvas.width = 40000; | 14 canvas.width = 40000; |
(...skipping 24 matching lines...) Expand all Loading... |
39 imageData = dstContext.getImageData(0, 1, 1, 1); | 39 imageData = dstContext.getImageData(0, 1, 1, 1); |
40 imgdata = imageData.data; | 40 imgdata = imageData.data; |
41 shouldBe("imgdata[0]", "0"); | 41 shouldBe("imgdata[0]", "0"); |
42 shouldBe("imgdata[1]", "0"); | 42 shouldBe("imgdata[1]", "0"); |
43 shouldBe("imgdata[2]", "0"); | 43 shouldBe("imgdata[2]", "0"); |
44 shouldBe("imgdata[3]", "0"); | 44 shouldBe("imgdata[3]", "0"); |
45 </script> | 45 </script> |
46 <script src="../js/resources/js-test-post.js"></script> | 46 <script src="../js/resources/js-test-post.js"></script> |
47 </body> | 47 </body> |
48 </html> | 48 </html> |
OLD | NEW |