Changeset 249174 in webkit
- Timestamp:
- Aug 27, 2019 2:42:32 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249173 r249174 1 2019-08-27 Megan Gardner <megan_gardner@apple.com> 2 3 Update Test Expectations for iPad for fast/scrolling/ios/autoscroll-input-when-very-zoomed.html 4 https://bugs.webkit.org/show_bug.cgi?id=201163 5 <rdar://problem/54727027> 6 7 Reviewed by Simon Fraser. 8 9 Altering test slightly to have a reasonable test expecation on iPad. 10 11 * platform/ipad/fast/scrolling/ios/autoscroll-input-when-very-zoomed-expected.txt: Added. 12 1 13 2019-08-27 Devin Rousso <drousso@apple.com> 2 14 -
trunk/LayoutTests/fast/scrolling/ios/autoscroll-input-when-very-zoomed-expected.txt
r248977 r249174 1 This test focuses a form, them zooms and scrolls the page. Then text is entered in the form, and we check to make sure the page has scrolled so that the input is visible again, but not more that once, as it should be visible after the first scroll. 2 PASS: page has scrolled when the selection is not visible, and not scrolled when the selection is already visible. 1 This test focuses a form, them zooms and scrolls the page. Then text is entered in the form, and we check to make sure the page has scrolled when needed to make the input visible again. On iPhone, the page should scroll on the first text input so that the input element in is visible again, but should not scroll more than once, as it should be visible after the first scroll. On iPad, the input should not scroll at all, as the iPad is larger and should not need to scroll for the input element to be visible. The test results should refelct these expectaitions. 2 Page has scrolled on the first input 3 Page has not scrolled on the second input 3 4 -
trunk/LayoutTests/fast/scrolling/ios/autoscroll-input-when-very-zoomed.html
r249042 r249174 23 23 24 24 await UIHelper.immediateZoomToScale(3.284); 25 await UIHelper.immediateScrollTo(390, 390);25 await UIHelper.immediateScrollTo(390, 500); 26 26 27 27 await Promise.all([UIHelper.ensureVisibleContentRectUpdate(), UIHelper.ensureStablePresentationUpdate()]); … … 42 42 var finalYOffset = window.pageYOffset; 43 43 44 if ((originalXOffset != secondXOffset) && (secondXOffset == finalXOffset) && (originalYOffset != secondYOffset) && (secondYOffset == finalYOffset)) 45 output += 'PASS: page has scrolled when the selection is not visible, and not scrolled when the selection is already visible.'; 46 else { 47 if ((originalXOffset == secondXOffset) || (originalYOffset == secondYOffset)) 48 output += 'FAIL: page has failed to scrolled on the first input<br>'; 49 if ((secondXOffset != finalXOffset) || (secondYOffset != finalYOffset)) 50 output += 'FAIL: page has scrolled on the second input'; 51 } 44 if ((originalXOffset != secondXOffset) || (originalYOffset != secondYOffset)) 45 output += 'Page has scrolled on the first input'; 46 if ((originalXOffset == secondXOffset) && (originalYOffset == secondYOffset)) 47 output += 'Page has not scrolled on the first input'; 48 output +='<br>'; 49 50 if ((secondXOffset != finalXOffset) || (secondYOffset != finalYOffset)) 51 output += 'Page has scrolled on the second input.'; 52 if ((secondXOffset == finalXOffset) && (secondYOffset == finalYOffset)) 53 output += 'Page has not scrolled on the second input'; 52 54 output += '<br>'; 53 55 … … 79 81 This test focuses a form, them zooms and scrolls the page. 80 82 Then text is entered in the form, and we check to make sure the page has scrolled 81 so that the input is visible again, but not more that once, as it should be visible 82 after the first scroll. 83 when needed to make the input visible again. On iPhone, the page should scroll on 84 the first text input so that the input element in is visible again, but should not 85 scroll more than once, as it should be visible after the first scroll. On iPad, the 86 input should not scroll at all, as the iPad is larger and should not need to scroll 87 for the input element to be visible. The test results should refelct these expectaitions. 83 88 <div id="testArea"><input id="editable" type="text" value="Test text"></input></div> 84 89 </body>
Note: See TracChangeset
for help on using the changeset viewer.