blob: 1a2e9ee55c26c2b2d38619a7defd89c2e1042eb6 [file] [log] [blame]
simon.fraser@apple.comf68ed0a2011-05-04 20:08:11 +00001<body style="background-color: green;">
2 <!-- This test should not assert in WebKit2, nor should it show flashing if you load it manually. -->
3 <div id="target"></div>
4 <script>
rniwa@webkit.org18904132012-06-11 18:29:22 +00005 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
simon.fraser@apple.comf68ed0a2011-05-04 20:08:11 +00008 }
9
10 var count = 0;
11 var intervalID = window.setInterval(function() {
12 var target = document.getElementById("target");
13 target.style.webkitTransform = "translateZ(0)";
14 document.body.offsetTop;
15 target.style.removeProperty("-webkit-transform");
16
17 if (++count == 10) {
18 window.clearInterval(intervalID);
rniwa@webkit.org18904132012-06-11 18:29:22 +000019 if (window.testRunner)
20 testRunner.notifyDone();
simon.fraser@apple.comf68ed0a2011-05-04 20:08:11 +000021 }
22 }, 100);
23 </script>
24</body>