Changeset 268807 in webkit
- Timestamp:
- Oct 21, 2020, 11:07:34 AM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/mac-wk1/TestExpectations (modified) (1 diff)
-
webanimations/accelerated-overlapping-transform-animations.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268805 r268807 1 2020-10-21 Antoine Quint <graouts@webkit.org> 2 3 [WK1] webanimations/accelerated-overlapping-transform-animations.html is a failure 4 https://bugs.webkit.org/show_bug.cgi?id=217997 5 <rdar://problem/70505533> 6 7 Reviewed by Dean Jackson. 8 9 On WK1 UIHelper.ensureStablePresentationUpdate() does not guarantee frames have elapsed so we 10 wait a couple of animation frames in that configuration to ensure an accelerated animation has 11 been applied. 12 13 * platform/mac-wk1/TestExpectations: 14 * webanimations/accelerated-overlapping-transform-animations.html: 15 1 16 2020-10-21 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r268771 r268807 1199 1199 1200 1200 webkit.org/b/217934 inspector/debugger/breakpoint-resolve-when-script-added.html [ Skip ] 1201 1202 webkit.org/b/217997 webanimations/accelerated-overlapping-transform-animations.html [ Pass Failure ] -
trunk/LayoutTests/webanimations/accelerated-overlapping-transform-animations.html
r268771 r268807 15 15 <script> 16 16 17 const waitForAnimationCommit = async (animation) => { 18 await animation.ready; 19 if (!UIHelper.isWebKit2()) { 20 await UIHelper.renderingUpdate(); 21 await UIHelper.renderingUpdate(); 22 } else 23 await UIHelper.ensureStablePresentationUpdate() 24 } 25 17 26 (async () => { 18 27 if (window.testRunner) … … 24 33 const duration = 60 * 1000; 25 34 26 // Start a first stationary "transform" animation. 27 const firstAnimation = target.animate({ transform: ["translateX(100px)", "translateX(100px)"] }, duration); 28 29 // Wait until this first animation has been applied. 30 await firstAnimation.ready; 31 await UIHelper.ensureStablePresentationUpdate(); 32 33 // Now start a second stationary "transform" animation, which should replace the previous animation. 34 const secondAnimation = target.animate({ transform: ["translateX(200px)", "translateX(200px)"] }, duration); 35 36 // Wait until this second animation has been applied. 37 await secondAnimation.ready; 38 await UIHelper.ensureStablePresentationUpdate(); 35 // Start a first stationary "transform" animation and wait until it has been applied before starting 36 // a second stationary "transform" animation which should replace the first one. 37 await waitForAnimationCommit(target.animate({ transform: ["translateX(100px)", "translateX(100px)"] }, duration)); 38 await waitForAnimationCommit(target.animate({ transform: ["translateX(200px)", "translateX(200px)"] }, duration)); 39 39 40 40 if (window.testRunner)
Note:
See TracChangeset
for help on using the changeset viewer.