OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test drawImage(image) with canvas with different composite modes.</ti
tle> | 4 <title>Test drawImage(video) with canvas with different composite modes.</ti
tle> |
5 <script src="resources/canvas-composite-image-common.js"></script> | 5 <script src="resources/canvas-composite-image-common.js"></script> |
6 <style type="text/css"> | 6 <style type="text/css"> |
7 body { margin: 5px; font-family: arial,verdana,helvetica; background: #fff
; } | 7 body { margin: 5px; font-family: arial,verdana,helvetica; background: #fff
; } |
8 canvas { border: 1px solid #999; } | 8 canvas { border: 1px solid #999; } |
9 div { margin: 10px; } | 9 div { margin: 10px; } |
10 #output h1 { font-size: medium; font-weight: normal; } | 10 #output h1 { font-size: medium; font-weight: normal; } |
11 #output h2 { font-size: small; font-weight: normal; } | 11 #output h2 { font-size: small; font-weight: normal; } |
12 #output div { font-size: small; margin: 0px; } | 12 #output div { font-size: small; margin: 0px; } |
13 #output .pass { color: green; } | 13 #output .pass { color: green; } |
14 #output .fail { color: rgb(255, 0, 0); } | 14 #output .fail { color: rgb(255, 0, 0); } |
(...skipping 28 matching lines...) Expand all Loading... |
43 | 43 |
44 function playVideo() { | 44 function playVideo() { |
45 video.removeEventListener("playing", playVideo, true); | 45 video.removeEventListener("playing", playVideo, true); |
46 // We cannot read pixel after drawing a video because of SecurityError: | 46 // We cannot read pixel after drawing a video because of SecurityError: |
47 // The canvas has been tainted by cross-origin data. | 47 // The canvas has been tainted by cross-origin data. |
48 runTest("dumpAsTextWithPixelResults") | 48 runTest("dumpAsTextWithPixelResults") |
49 } | 49 } |
50 </script> | 50 </script> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |