| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 #container { | 5 #container { |
| 6 width: 500px; | 6 width: 500px; |
| 7 height: 20000px; | 7 height: 20000px; |
| 8 -webkit-transform:translateZ(0); | 8 -webkit-transform:translateZ(0); |
| 9 } | 9 } |
| 10 body { | 10 body { |
| 11 overflow: hidden; | 11 overflow: hidden; |
| 12 } | 12 } |
| 13 </style> | 13 </style> |
| 14 <script type="text/javascript" charset="utf-8"> | 14 <script type="text/javascript" charset="utf-8"> |
| 15 if (window.testRunner) | 15 if (window.testRunner) |
| 16 testRunner.dumpAsText(true); | 16 testRunner.dumpAsTextWithPixelResults(); |
| 17 | 17 |
| 18 function testOnLoad() | 18 function testOnLoad() |
| 19 { | 19 { |
| 20 var canvas = document.createElement('canvas'); | 20 var canvas = document.createElement('canvas'); |
| 21 var img = document.getElementById("container") | 21 var img = document.getElementById("container") |
| 22 canvas.width = img.width; | 22 canvas.width = img.width; |
| 23 canvas.height = img.height; | 23 canvas.height = img.height; |
| 24 var context = canvas.getContext('2d'); | 24 var context = canvas.getContext('2d'); |
| 25 context.fillStyle = "yellow"; | 25 context.fillStyle = "yellow"; |
| 26 context.fillRect(0, 0, canvas.width, canvas.height); | 26 context.fillRect(0, 0, canvas.width, canvas.height); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 38 <body> | 38 <body> |
| 39 <!-- | 39 <!-- |
| 40 The yellow box should be large enough to scroll off the bottom. | 40 The yellow box should be large enough to scroll off the bottom. |
| 41 There should be a red box within the yellow box. | 41 There should be a red box within the yellow box. |
| 42 This tests that we can support very large composited image layers. | 42 This tests that we can support very large composited image layers. |
| 43 --> | 43 --> |
| 44 <img id="container"> | 44 <img id="container"> |
| 45 <pre id="layers">Layer tree appears here in DRT.</pre> | 45 <pre id="layers">Layer tree appears here in DRT.</pre> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |