This website requires JavaScript.
Explore
Help
Sign In
nephele
/
haikuwebkit
Watch
1
Star
0
Fork
You've already forked haikuwebkit
0
Code
Issues
Releases
Activity
haiku
haikuwebkit
/
LayoutTests
/
animations
/
animation-direction-normal-...
4 lines
92 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
[ Mac iOS ] animations/animation-direction-normal.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=210156 <rdar://problem/61411725> Reviewed by Simon Fraser. The tests animations/animation-direction-normal.html and animations/animation-direction-reverse.html were both written similarly to test that an element targeted by a CSS Animation would have styles animated while the animation is running and that those styles would no longer be animated once the CSS Animation was paused using the "animation-play-state" CSS property. The way those assertions were made were to use setTimeout() to check the computed style at a given time and compared it to an expected value give or take an error margin. This design was flaky, as a system under load could easily not run the timeout until a much larger delta than the one expected would elapse. We use a new JS helper to write these tests in a non-flaky manner. The technique used now is to record the computed style while the animation is running without providing expected times and values, but rather specifying delays between which we want to record the computed style. Once all values have been recorded, a method can be used to check those recorded values by using the Web Animations API to pause and seek the animation at recorded times and query the computed style, which allows us to test values without an error margin. Finally, the new JS helper also allows to check the computed style using a timeout when the animation play state is not relevant, allowing those tests to pause the animation using the "animation-play-state" property and check after incremental timeouts that the computed style did not change. We also made the tests use the WPT harness for assertions and reporting. * animations/animation-direction-normal-expected.txt: * animations/animation-direction-normal.html: * animations/animation-direction-reverse-expected.txt: * animations/animation-direction-reverse.html: * animations/resources/animation-test.js: Added. (AnimationTest): (AnimationTest.prototype.get animation): (AnimationTest.prototype.get value): (AnimationTest.prototype.async valueAfterWaitingFor): (AnimationTest.prototype.async recordValueAfterRunningFor): (AnimationTest.prototype.checkRecordedValues): (AnimationTest.prototype._tickUntil): * platform/ios-wk1/TestExpectations: * platform/ios-wk2/TestExpectations: Canonical link: https://commits.webkit.org/223804@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-23 17:23:18 +00:00
Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) https://bugs.webkit.org/show_bug.cgi?id=217016 Reviewed by Zalan Bujtas. Done with this command: find LayoutTests -name '*-expected.txt' | grep -v imported | xargs awk '/^CONSOLE MESSAGE:/ { next }; /^<\?xml/ { nextfile }; { print FILENAME; nextfile }' | xargs perl -i -pe 's/ +$//g' This affects many files, and it's not helpful to clog the change log with a list of them. Canonical link: https://commits.webkit.org/229803@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-27 02:15:19 +00:00
PASS Pausing an animation using the animation-play-state property stops animating styles.
2011-06-13 Young Han Lee <joybro@company100.net> Reviewed by Kenneth Rohde Christiansen. [Texmap][Qt] Accelerated animation is repeating as if its direction property is always 'alternate'. https://bugs.webkit.org/show_bug.cgi?id=62281 syncAnimations() has miscalculated a normalized progress value as if the animation always has alternate direction property. * animations/animation-direction-normal-expected.png: Added. * animations/animation-direction-normal-expected.txt: Added. * animations/animation-direction-normal.html: Added. 2011-06-13 Young Han Lee <joybro@company100.net> Reviewed by Kenneth Rohde Christiansen. [Texmap][Qt] Accelerated animation is repeating as if its direction property is always 'alternate'. https://bugs.webkit.org/show_bug.cgi?id=62281 syncAnimations() has miscalculated a normalized progress value as if the animation always has alternate direction property. Test: animations/animation-direction-normal.html * platform/graphics/texmap/TextureMapperNode.cpp: (WebCore::TextureMapperNode::syncAnimations): Canonical link: https://commits.webkit.org/78046@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-06-13 15:36:13 +00:00