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 rectangle with shadow."); | 8 description("Series of tests to ensure correct results on applying diffe
rent blend modes when drawing a rectangle with shadow."); |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 checkBlendModeResult(i, context, sigma); | 46 checkBlendModeResult(i, context, sigma); |
47 context.restore(); | 47 context.restore(); |
48 debug(''); | 48 debug(''); |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 runTest(); | 52 runTest(); |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |