Changeset 251242 in webkit
- Timestamp:
- Oct 17, 2019 10:02:41 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r251241 r251242 1 2019-10-17 Simon Fraser <simon.fraser@apple.com> 2 3 Two fast/scrolling/ios/touch-scroll* tests failing in iOS 13 4 https://bugs.webkit.org/show_bug.cgi?id=203070 5 rdar://problem/51756254 6 7 Reviewed by Wenson Hsieh. 8 9 For some reason the uiController.dragFromPointToPoint() in these tests was too long 10 to trigger scrolling (maybe an OS change). Fix them to use UIHelper and a shorter 11 duration, and also to not be sensitive to the exact distance scrolled. 12 13 * fast/scrolling/ios/touch-scroll-pointer-events-none-expected.txt: 14 * fast/scrolling/ios/touch-scroll-pointer-events-none.html: 15 * fast/scrolling/ios/touch-scroll-visibility-hidden-expected.txt: 16 * fast/scrolling/ios/touch-scroll-visibility-hidden.html: 17 * platform/ios-wk2/TestExpectations: 18 * resources/ui-helper.js: 19 (window.UIHelper.dragFromPointToPoint): 20 1 21 2019-10-17 Simon Fraser <simon.fraser@apple.com> 2 22 -
trunk/LayoutTests/fast/scrolling/ios/touch-scroll-pointer-events-none-expected.txt
r201901 r251242 3 3 swipe complete 4 4 PASS scroller.scrollTop is 0 5 PASS document .scrollingElement.scrollTop is 905 PASS documentDidScroll is true 6 6 PASS successfullyParsed is true 7 7 -
trunk/LayoutTests/fast/scrolling/ios/touch-scroll-pointer-events-none.html
r244628 r251242 42 42 </style> 43 43 <script src="../../../resources/js-test-pre.js"></script> 44 <script src="../../../resources/ui-helper.js"></script> 44 45 <script> 45 46 window.jsTestIsAsync = true; 46 47 47 function getUIScript()48 {49 return `50 (function() {51 uiController.dragFromPointToPoint(60, 200, 60, 100, 0.5, function() {52 uiController.uiScriptComplete("");53 });54 })();`55 }56 57 48 var hitElement; 58 function runTest() 49 var documentDidScroll; 50 async function runTest() 59 51 { 60 52 hitElement = document.elementFromPoint(20, 20); … … 64 56 shouldBe("scroller.scrollTop", "0"); 65 57 66 if (testRunner.runUIScript){67 testRunner.runUIScript(getUIScript(), function() {68 setTimeout(function() {69 debug("swipe complete"); 70 shouldBe("scroller.scrollTop", "0");71 shouldBe("document.scrollingElement.scrollTop", "90");72 finishJSTest();73 }, 0);74 });75 }58 await UIHelper.callFunctionAndWaitForScrollToFinish(async () => { 59 await UIHelper.dragFromPointToPoint(60, 200, 60, 100, 0.25); 60 }); 61 62 debug("swipe complete"); 63 shouldBe("scroller.scrollTop", "0"); 64 65 documentDidScroll = document.scrollingElement.scrollTop > 0; 66 shouldBeTrue("documentDidScroll"); 67 finishJSTest(); 76 68 } 77 69 window.addEventListener('load', runTest, false); -
trunk/LayoutTests/fast/scrolling/ios/touch-scroll-visibility-hidden-expected.txt
r200609 r251242 3 3 swipe complete 4 4 PASS scroller.scrollTop is 0 5 PASS document .scrollingElement.scrollTop is 905 PASS documentDidScroll is true 6 6 PASS successfullyParsed is true 7 7 -
trunk/LayoutTests/fast/scrolling/ios/touch-scroll-visibility-hidden.html
r244628 r251242 43 43 </style> 44 44 <script src="../../../resources/js-test-pre.js"></script> 45 <script src="../../../resources/ui-helper.js"></script> 45 46 <script> 46 47 window.jsTestIsAsync = true; 47 48 48 function getUIScript()49 {50 return `51 (function() {52 uiController.dragFromPointToPoint(60, 200, 60, 100, 0.5, function() {53 uiController.uiScriptComplete("");54 });55 })();`56 }57 58 49 var hitElement; 59 function runTest() 50 var documentDidScroll; 51 async function runTest() 60 52 { 61 53 hitElement = document.elementFromPoint(20, 20); … … 65 57 shouldBe("scroller.scrollTop", "0"); 66 58 67 if (testRunner.runUIScript){68 testRunner.runUIScript(getUIScript(), function() {69 setTimeout(function() {70 debug("swipe complete"); 71 shouldBe("scroller.scrollTop", "0");72 shouldBe("document.scrollingElement.scrollTop", "90");73 finishJSTest();74 }, 0);75 });76 }59 await UIHelper.callFunctionAndWaitForScrollToFinish(async () => { 60 await UIHelper.dragFromPointToPoint(60, 200, 60, 100, 0.25); 61 }); 62 63 debug("swipe complete"); 64 shouldBe("scroller.scrollTop", "0"); 65 66 documentDidScroll = document.scrollingElement.scrollTop > 0; 67 shouldBeTrue("documentDidScroll"); 68 finishJSTest(); 77 69 } 78 70 window.addEventListener('load', runTest, false); -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r251109 r251242 1360 1360 mathml/focus-event-handling.html [ Failure ] 1361 1361 1362 # <rdar://problem/51756254>REGRESSION (r244582-r244596) Layout tests fast/scrolling/ios/touch-scroll-visibility-hidden.html fast/scrolling/ios/touch-scroll-pointer-events-none.html are failing1363 fast/scrolling/ios/touch-scroll-pointer-events-none.html [ Failure ]1364 fast/scrolling/ios/touch-scroll-visibility-hidden.html [ Failure ]1365 1362 # <rdar://problem/52962272> fast/scrolling/ios/body-overflow-hidden.html is an Image failure 1366 1363 fast/scrolling/ios/body-overflow-hidden.html [ Pass ImageOnlyFailure ] 1367 -
trunk/LayoutTests/resources/ui-helper.js
r250392 r251242 1008 1008 testRunner.runUIScript(`(() => { 1009 1009 uiController.dragFromPointToPoint(${fromX}, ${fromY}, ${toX}, ${toY}, ${duration}, () => { 1010 uiController.uiScriptComplete( "");1010 uiController.uiScriptComplete(); 1011 1011 }); 1012 1012 })();`, resolve);
Note: See TracChangeset
for help on using the changeset viewer.