Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <head> | 2 <head> |
| 3 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/text-based-repaint.js"></script> |
| 4 <script src="../../resources/run-after-display.js"></script> | |
|
leviw_travelin_and_unemployed
2014/05/05 18:52:32
It's odd that this test change is included. At lea
dsinclair
2014/05/05 19:38:26
Removed, isn't relevant to this CL.
| |
| 4 <style> | 5 <style> |
| 5 #about-container { | 6 #about-container { |
| 6 display: -webkit-box; | 7 display: -webkit-box; |
| 7 } | 8 } |
| 8 #foo { | 9 #foo { |
| 9 background-color: green; | 10 background-color: green; |
| 10 width: 0px; | 11 width: 0px; |
| 11 height: 0px; | 12 height: 0px; |
| 12 } | 13 } |
| 13 </style> | 14 </style> |
| 14 <script type="text/javascript"> | 15 <script type="text/javascript"> |
| 16 window.onload = runRepaintTest; | |
| 15 window.testIsAsync = true; | 17 window.testIsAsync = true; |
| 16 | 18 |
| 17 function repaintTest() { | 19 function repaintTest() { |
| 18 setTimeout(function() { | 20 runAfterDisplay(function() { |
| 19 var i = document.getElementById('foo'); | 21 var i = document.getElementById('foo'); |
| 20 i.style.width = "32px"; | 22 i.style.width = "32px"; |
| 21 i.style.height = "32px"; | 23 i.style.height = "32px"; |
| 22 finishRepaintTest(); | 24 |
| 23 }, 50); | 25 if (window.testRunner) |
| 26 finishRepaintTest(); | |
| 27 }); | |
| 24 }; | 28 }; |
| 25 onload = runRepaintTest; | |
| 26 </script> | 29 </script> |
| 27 </head> | 30 </head> |
| 28 | 31 |
| 29 <p>Test for http://crbug.com/360453</p> | 32 <p>Test for http://crbug.com/360453</p> |
| 30 <p>You should see an invalidation at x=40 of the h2 or this test is broken.</p> | 33 <p>You should see an invalidation at x=40 of the h2 or this test is broken.</p> |
| 31 | 34 |
| 32 <div id="about-container"> | 35 <div id="about-container"> |
| 33 <img id='foo'/> | 36 <img id='foo'/> |
| 34 <h2>Chromium</h2> | 37 <h2>Chromium</h2> |
| 35 </div> | 38 </div> |
| 36 | 39 |
| OLD | NEW |