OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 window.jsTestIsAsync = true | 7 window.jsTestIsAsync = true |
8 </script> | 8 </script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
11 <script src="../js/resources/js-test-pre.js"></script> | 11 <script src="../../resources/js-test.js"></script> |
12 <script type="text/javascript" src="canvas-blending-helpers.js"></script> | 12 <script type="text/javascript" src="canvas-blending-helpers.js"></script> |
13 <script type="text/javascript"> | 13 <script type="text/javascript"> |
14 | 14 |
15 description("Series of tests to ensure correct results on applying diffe
rent blend modes when drawing an image on top of a gradient."); | 15 description("Series of tests to ensure correct results on applying diffe
rent blend modes when drawing an image on top of a gradient."); |
16 | 16 |
17 var context; | 17 var context; |
18 function actualColor(x, y) { | 18 function actualColor(x, y) { |
19 return context.getImageData(x, y, 1, 1).data; | 19 return context.getImageData(x, y, 1, 1).data; |
20 } | 20 } |
21 | 21 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 canvas.width = 10; | 54 canvas.width = 10; |
55 canvas.height = 10; | 55 canvas.height = 10; |
56 context = canvas.getContext("2d"); | 56 context = canvas.getContext("2d"); |
57 drawElement(context, 0); | 57 drawElement(context, 0); |
58 } | 58 } |
59 | 59 |
60 runTest(); | 60 runTest(); |
61 </script> | 61 </script> |
62 </body> | 62 </body> |
63 </html> | 63 </html> |
OLD | NEW |