OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <body> |
| 3 <div id="div">This test passes if it does not crash.</div> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 testRunner.waitUntilDone(); |
| 7 testRunner.dumpAsText(); |
| 8 |
| 9 var div = document.getElementById('div'); |
| 10 testRunner.displayAsyncThen(function() { |
| 11 div.style.position = 'relative'; |
| 12 div.style.backgroundColor = 'blue'; |
| 13 testRunner.displayAsyncThen(function() { |
| 14 div.textContent += ' PASS'; |
| 15 testRunner.notifyDone(); |
| 16 }); |
| 17 }); |
| 18 } else { |
| 19 document.body.textContent = 'This test needs DumpRenderTree.'; |
| 20 } |
| 21 </script> |
| 22 </body> |
OLD | NEW |