| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 html { | 4 html { |
| 5 -webkit-filter: brightness(1.1) contrast(120%); | 5 -webkit-filter: brightness(1.1) contrast(120%); |
| 6 } | 6 } |
| 7 #rect { | 7 #rect { |
| 8 background: red; | 8 background: red; |
| 9 width: 100px; | 9 width: 100px; |
| 10 height: 100px; | 10 height: 100px; |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <div id="rect"></div> | 15 <div id="rect"></div> |
| 16 </body> | 16 </body> |
| 17 <script src="../../resources/run-after-display.js"></script> |
| 17 <script> | 18 <script> |
| 18 function changeBackground() { | 19 function changeBackground() { |
| 19 document.getElementById("rect").style.background = "green"; | 20 document.getElementById("rect").style.background = "green"; |
| 21 if (window.testRunner) { |
| 22 testRunner.notifyDone(); |
| 23 } |
| 20 } | 24 } |
| 21 | 25 |
| 22 if (window.testRunner) { | 26 if (window.testRunner) { |
| 23 testRunner.dumpAsTextWithPixelResults(); | 27 testRunner.dumpAsTextWithPixelResults(); |
| 24 testRunner.display(); | 28 testRunner.waitUntilDone(); |
| 25 changeBackground(); | 29 } |
| 26 } else | 30 runAfterDisplay(changeBackground); |
| 27 window.setTimeout(changeBackground, 250); | |
| 28 | |
| 29 </script> | 31 </script> |
| 30 </html> | 32 </html> |
| OLD | NEW |