OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .content { | 5 .content { |
6 -webkit-transform: translateZ(1px); | 6 -webkit-transform: translateZ(1px); |
7 display: block; | 7 display: block; |
8 width: 100px; | 8 width: 100px; |
9 height: 30px; | 9 height: 30px; |
10 background-color: green; | 10 background-color: green; |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 <script> | 31 <script> |
32 if (window.testRunner) { | 32 if (window.testRunner) { |
33 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
34 testRunner.dumpAsText(); | 34 testRunner.dumpAsText(); |
35 } | 35 } |
36 | 36 |
37 var times = 0; | 37 var times = 0; |
38 // Trigger "pending layouts", that might run after the marquee timer
is fired. | 38 // Trigger "pending layouts", that might run after the marquee timer
is fired. |
39 var counter = document.getElementById("counter"); | 39 var counter = document.getElementById("counter"); |
40 var textNode = document.createTextNode(); | 40 var textNode = document.createTextNode(""); |
41 counter.appendChild(textNode); | 41 counter.appendChild(textNode); |
42 var interval = setInterval(function() { | 42 var interval = setInterval(function() { |
43 textNode.nodeValue = Math.random(); | 43 textNode.nodeValue = Math.random(); |
44 if ((++times) >= 10) { | 44 if ((++times) >= 10) { |
45 document.getElementById("container").remove(); | 45 document.getElementById("container").remove(); |
46 textNode.nodeValue = ""; | 46 textNode.nodeValue = ""; |
47 clearInterval(interval); | 47 clearInterval(interval); |
48 if (window.testRunner) | 48 if (window.testRunner) |
49 testRunner.notifyDone(); | 49 testRunner.notifyDone(); |
50 } | 50 } |
51 }, 10); | 51 }, 10); |
52 </script> | 52 </script> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |