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" src="canvas-blending-helpers.js"></script> | 5 <script type="text/javascript" src="canvas-blending-helpers.js"></script> |
6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
7 | 7 |
8 description("Series of tests to ensure correct results on applying diffe
rent blend modes when drawing a gradient on top of another."); | 8 description("Series of tests to ensure correct results on applying diffe
rent blend modes when drawing a gradient on top of another."); |
9 | 9 |
10 var context; | 10 var context; |
11 function actualColor(x, y) { | 11 function actualColor(x, y) { |
12 return context.getImageData(x, y, 1, 1).data; | 12 return context.getImageData(x, y, 1, 1).data; |
13 } | 13 } |
14 | 14 |
(...skipping 24 matching lines...) Expand all Loading... |
39 checkBlendModeResult(i, context, sigma); | 39 checkBlendModeResult(i, context, sigma); |
40 context.restore(); | 40 context.restore(); |
41 debug(''); | 41 debug(''); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 runTest(); | 45 runTest(); |
46 </script> | 46 </script> |
47 </body> | 47 </body> |
48 </html> | 48 </html> |
OLD | NEW |