Changeset 177265 in webkit
- Timestamp:
- Dec 14, 2014 11:02:40 AM (9 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r177263 r177265 1 2014-12-14 Chris Dumez <cdumez@apple.com> 2 3 fast/images/animated-gif-body-outside-viewport.html is flaky 4 https://bugs.webkit.org/show_bug.cgi?id=139599 5 6 Reviewed by Alexey Proskuryakov. 7 8 Update fast/images/animated-gif-body-outside-viewport.html to use 9 shouldBecomeEqual() instead of a setTimeout() + shouldBe() to fix 10 the flakiness. 11 12 * fast/images/animated-gif-body-outside-viewport-expected.txt: 13 * fast/images/animated-gif-body-outside-viewport.html: 14 * platform/mac-wk1/TestExpectations: 15 1 16 2014-12-14 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/LayoutTests/fast/images/animated-gif-body-outside-viewport-expected.txt
r177135 r177265 4 4 5 5 6 PASS isBackgroundAnimated isfalse6 PASS isBackgroundAnimated() became false 7 7 Scroll down so that the body becomes visible. 8 PASS isBackgroundAnimated istrue8 PASS isBackgroundAnimated() became true 9 9 PASS successfullyParsed is true 10 10 -
trunk/LayoutTests/fast/images/animated-gif-body-outside-viewport.html
r177135 r177265 6 6 <body style="background-image: url('resources/animated.gif'); background-repeat: repeat; position: relative; left: 0px; top: 700px; width: 200px; height: 200px" onload="runTest()"> 7 7 <script> 8 description("Make sure the background image of a body element that is outside the viewport is not animated"); 8 9 jsTestIsAsync = true; 9 10 10 function checkBackgroundAnimated() { 11 isBackgroundAnimated = !internals.hasPausedImageAnimations(document.body); 12 shouldBeTrue("isBackgroundAnimated"); 13 finishJSTest(); 11 function isBackgroundAnimated() 12 { 13 return !internals.hasPausedImageAnimations(document.body); 14 14 } 15 15 16 function checkBackgroundNotAnimated() { 17 isBackgroundAnimated = !internals.hasPausedImageAnimations(document.body); 18 description("Make sure the background image of a body element that is outside the viewport is not animated"); 19 shouldBeFalse("isBackgroundAnimated"); 20 16 function scrollDown() { 21 17 debug("Scroll down so that the body becomes visible."); 22 18 window.scrollBy(0, 600); 23 s etTimeout(checkBackgroundAnimated, 0);19 shouldBecomeEqual("isBackgroundAnimated()", "true", finishJSTest); 24 20 } 25 21 26 22 function imageLoaded() { 27 s etTimeout(checkBackgroundNotAnimated, 200);23 shouldBecomeEqual("isBackgroundAnimated()", "false", scrollDown); 28 24 } 29 25 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r177239 r177265 28 28 29 29 webkit.org/b/112533 media/auto-play-in-sandbox-with-allow-scripts.html [ Pass Timeout ] 30 31 webkit.org/b/139599 fast/images/animated-gif-body-outside-viewport.html [ Pass Failure ]32 30 33 31 ### END OF (1) Failures with bug reports
Note: See TracChangeset
for help on using the changeset viewer.