Changeset 258572 in webkit
- Timestamp:
- Mar 17, 2020 12:39:47 PM (4 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r258571 r258572 1 2020-03-17 Antoine Quint <graouts@apple.com> 2 3 http/wpt/css/css-animations/start-animation-001.html is flaky failing 4 https://bugs.webkit.org/show_bug.cgi?id=207337 5 <rdar://problem/59226371> 6 7 Reviewed by Dean Jackson. 8 9 This test was written in a flaky way for two reasons: 10 11 1. it was using a timer to assume state in the animation engine 12 2. it was using an accelerated animation that wasn't absolutely required to as an indicator of what a non-steps based version 13 of the tested animation would look like, but accelerated animations are notoriously hard to test for rendering purposes 14 15 We update the test to use the secondary animation as a timer so that we can test the state of animations at 200ms precisely, 16 and we get rid of the accelerated animation such that only the tested animation's rendering is tested. 17 18 * http/wpt/css/css-animations/start-animation-001.html: 19 * platform/mac/TestExpectations: 20 1 21 2020-03-17 Antoine Quint <graouts@apple.com> 2 22 -
trunk/LayoutTests/http/wpt/css/css-animations/start-animation-001.html
r239656 r258572 17 17 } 18 18 /* Avoid animation-fill-mode, to make sure that the move is done by the animation code. */ 19 #squareLinear {20 top: 0px;21 animation: moveByTransform 10s linear;22 }23 19 #squareSteps { 24 20 top: 150px; … … 27 23 #squareNonAccelerated { 28 24 top: 300px; 29 animation: moveByLeft 10s steps(100);25 animation: moveByLeft 200ms steps(10) forwards; 30 26 } 31 27 @keyframes moveByTransform … … 41 37 } 42 38 100% { 43 left: 5000px;39 left: 90px; 44 40 } 45 41 } … … 54 50 </style> 55 51 <script> 56 function runTest(){57 if (!window.testRunner)58 return;59 // We wait a bit after the squares are moved behind the blue rectangle. For discontinuous60 // transforms we have 5000px / 100 steps = 5px/step. Hence this happens after 20 steps i.e.61 // 20/100*10s = 200ms.62 testRunner.waitUntilDone();63 setTimeout(() => { testRunner.notifyDone(); }, 300);64 } 52 window.addEventListener("DOMContentLoaded", () => { 53 if (!window.testRunner) 54 return; 55 // We wait a bit after the squares are moved behind the blue rectangle. For discontinuous 56 // transforms we have 5000px / 100 steps = 5px/step. Hence this happens after 20 steps i.e. 57 // 20/100*10s = 200ms. 58 testRunner.waitUntilDone(); 59 document.getElementById("squareNonAccelerated").addEventListener("animationend", () => testRunner.notifyDone()); 60 }); 65 61 </script> 66 62 </head> 67 <body onload="runTest()">63 <body> 68 64 <p>This test passes if green squares are moved behind the blue rectangle.</p> 69 65 <div id="container"> 70 <div id="squareLinear"><tt>transform</tt> (linear)</div>71 66 <div id="squareSteps"><tt>transform</tt> (steps)</div> 72 67 <div id="squareNonAccelerated"><tt>left</tt> (steps)</div> -
trunk/LayoutTests/platform/mac/TestExpectations
r258563 r258572 1982 1982 webkit.org/b/194162 storage/websql/read-transactions-running-concurrently.html [ Pass Failure ] 1983 1983 1984 webkit.org/b/207337 http/wpt/css/css-animations/start-animation-001.html [ Pass ImageOnlyFailure ]1985 1986 1984 webkit.org/b/207710 svg/custom/animate-initial-pause-unpause.html [ Pass Failure ] 1987 1985
Note: See TracChangeset
for help on using the changeset viewer.