| OLD | NEW |
| 1 <!-- Based on fast/repaint/obscured-background-no-repaint.html --> | 1 <!-- Based on fast/repaint/obscured-background-no-repaint.html --> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../fast/repaint/../../resources/run-after-layout-and-paint.js
"></script> | 4 <script src="../../../fast/repaint/../../resources/run-after-layout-and-paint.js
"></script> |
| 5 <script src="resources/paint-invalidation-test.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
| 6 <style type="text/css"> | 6 <style type="text/css"> |
| 7 #test1 div { | 7 #test1 div { |
| 8 height: 100px; | 8 height: 100px; |
| 9 width: 100px; | 9 width: 100px; |
| 10 } | 10 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 background-image: url(../../../fast/repaint/resources/animated.gif) | 45 background-image: url(../../../fast/repaint/resources/animated.gif) |
| 46 } | 46 } |
| 47 </style> | 47 </style> |
| 48 <script> | 48 <script> |
| 49 // Test that obscured animated gif does not trigger repaints. | 49 // Test that obscured animated gif does not trigger repaints. |
| 50 if (window.testRunner) { | 50 if (window.testRunner) { |
| 51 testRunner.waitUntilDone(); | 51 testRunner.waitUntilDone(); |
| 52 testRunner.dumpAsText(); | 52 testRunner.dumpAsText(); |
| 53 } | 53 } |
| 54 window.testIsAsync = true; | 54 window.testIsAsync = true; |
| 55 window.expectedPaintInvalidationObjects = [ | |
| 56 ]; | |
| 57 function paintInvalidationTest() | 55 function paintInvalidationTest() |
| 58 { | 56 { |
| 59 runAfterLayoutAndPaint(finishPaintInvalidationTest); | 57 runAfterLayoutAndPaint(finishPaintInvalidationTest); |
| 60 } | 58 } |
| 61 | 59 |
| 62 function start() { | 60 function start() { |
| 63 if (!window.testRunner || !window.internals) | 61 if (!window.testRunner || !window.internals) |
| 64 return; | 62 return; |
| 65 | 63 |
| 66 var img = new Image(); | 64 var img = new Image(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 90 <a> | 88 <a> |
| 91 <div></div> | 89 <div></div> |
| 92 <div> | 90 <div> |
| 93 <img src="../../../fast/repaint/resources/apple.jpg"> | 91 <img src="../../../fast/repaint/resources/apple.jpg"> |
| 94 </div> | 92 </div> |
| 95 </a> | 93 </a> |
| 96 </div> | 94 </div> |
| 97 </div> | 95 </div> |
| 98 </body> | 96 </body> |
| 99 </html> | 97 </html> |
| OLD | NEW |