Attempt to make this test not flakey.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Sep 2019 21:59:48 +0000 (21:59 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Sep 2019 21:59:48 +0000 (21:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=201482

* legacy-animation-engine/compositing/transitions/add-remove-transition.html:

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

LayoutTests/ChangeLog
LayoutTests/legacy-animation-engine/compositing/transitions/add-remove-transition.html

index bd96baf..05bbf58 100644 (file)
 
         * TestExpectations:
 
+2019-09-10  Simon Fraser  <simon.fraser@apple.com>
+
+        Attempt to make this test not flakey.
+        https://bugs.webkit.org/show_bug.cgi?id=201482
+
+        * legacy-animation-engine/compositing/transitions/add-remove-transition.html:
+
 2019-09-09  Jiewen Tan  <jiewen_tan@apple.com>
 
         Layout Test http/wpt/webauthn/public-key-credential-create-failure-u2f-silent.https.html is flaky
index a50a842..e303ef5 100644 (file)
             transform: translateZ(0);
         }
     </style>
+    <script src="../../../resources/ui-helper.js"></script>
     <script>
         if (window.testRunner)
             testRunner.waitUntilDone();
 
-        window.addEventListener('load', () => {
+        window.addEventListener('load', async () => {
             target.classList.add('transitioning');
             document.body.offsetWidth;
             target.classList.add('no-transition');
-            setTimeout(() => {
-                if (window.testRunner)
-                    testRunner.notifyDone();
-            }, 20);
+            
+            await UIHelper.ensurePresentationUpdate();
+
+            if (window.testRunner)
+                testRunner.notifyDone();
         }, false);
     </script>
 </head>