Changeset 244082 in webkit
- Timestamp:
- Apr 9, 2019, 10:50:11 AM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
compositing/visible-rect/animated-from-none.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244078 r244082 1 2019-04-09 Antoine Quint <graouts@apple.com> 2 3 [ Mac ] REGRESSION (r237587) Layout Test compositing/visible-rect/animated-from-none.html is flaky text diff failure 4 https://bugs.webkit.org/show_bug.cgi?id=194798 5 <rdar://problem/48181898> 6 7 Reviewed by Dean Jackson. 8 9 When using the Web Animations engine, the best way to run code as an animation start is to use the "ready" promise, whereas 10 DOM events are dispatched asynchronously and, in the case of this test, might have an animation progress that is greater 11 than 0 and yield an animated transform that isn't quite the identity matrix. 12 13 * compositing/visible-rect/animated-from-none.html: 14 1 15 2019-04-09 Jer Noble <jer.noble@apple.com> 2 16 -
trunk/LayoutTests/compositing/visible-rect/animated-from-none.html
r236541 r244082 35 35 function doTest() 36 36 { 37 let animated = document.getElementById('animated'); 38 animated.addEventListener('webkitAnimationStart', function() { 37 const animated = document.getElementById('animated'); 38 animated.classList.add('animating'); 39 animated.getAnimations()[0].ready.then(() => { 39 40 if (window.internals) 40 41 document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS) … … 42 43 if (window.testRunner) 43 44 testRunner.notifyDone(); 44 }, false); 45 46 animated.classList.add('animating'); 45 }); 47 46 } 48 47 window.addEventListener('load', doTest, false);
Note:
See TracChangeset
for help on using the changeset viewer.