Another WK1 unflake attempt.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Sep 2017 21:01:30 +0000 (21:01 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Sep 2017 21:01:30 +0000 (21:01 +0000)
* transitions/transition-display-property-2.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222178 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/transitions/transition-display-property-2.html

index 55eaace..5763a4a 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-18  Antti Koivisto  <antti@apple.com>
+
+        Another WK1 unflake attempt.
+
+        * transitions/transition-display-property-2.html:
+
 2017-09-18  Ryosuke Niwa  <rniwa@webkit.org>
 
         getData('text/plain') doesn't work on iOS 10
index 025e2ff..30a61ea 100644 (file)
@@ -10,15 +10,22 @@ test {
 </style>
 <test></test>
 <script>
+if (window.testRunner)
+    testRunner.waitUntilDone();
+
 const test = document.querySelector("test");
-test.offsetWidth;
 
-if (window.testRunner) {
-    testRunner.waitUntilDone();
-    requestAnimationFrame(() => {
-        testRunner.notifyDone();
-    });
+function tryComplete()
+{
+    if (test.offsetHeight < 100) {
+        if (window.testRunner)
+            testRunner.notifyDone();
+        return;
+    }
+    setTimeout(tryComplete, 10);
 }
-test.className = "animate";
+
 test.offsetWidth;
+test.className = "animate";
+tryComplete();
 </script>