Summary: | Add more tests for ios iframe scrolling with fixed/sticky layers | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Frédéric Wang (:fredw) <fred.wang> | ||||||||||
Component: | UI Events | Assignee: | Frédéric Wang (:fredw) <fred.wang> | ||||||||||
Status: | NEW --- | ||||||||||||
Severity: | Normal | CC: | koivisto, simon.fraser | ||||||||||
Priority: | P2 | ||||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=194900 | ||||||||||||
Bug Depends on: | 192303, 194886, 197280 | ||||||||||||
Bug Blocks: | |||||||||||||
Attachments: |
|
Description
Frédéric Wang (:fredw)
2019-03-29 03:12:18 PDT
Created attachment 366262 [details]
Patch
Comment on attachment 366262 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366262&action=review > LayoutTests/fast/scrolling/ios/scroll-iframe-005.html:29 > + // This checks scrolling to the location of the green square. > + var c = centerOf("positionFixed"); > + await touchAndDragFromPointToPoint(c.x, c.y, c.x - 150, c.y - 150); > + await liftUpAtPoint(c.x - 150, c.y - 150); > + > + // Wait for scrolling to stabilize and for scrollbars to disappear. > + setTimeout(() => {testRunner.notifyDone(); }, 1000); Can you make these use UIHelper.immediateScrollElementAtContentPointToOffset and remove the timeouts? See LayoutTests/fast/scrolling/ios/overflow-scroll-overlap.html (and LayoutTests/fast/scrolling/resources/overflow-scroll-overlap.js) for an example. Created attachment 366274 [details]
Additional patch to use immediateScrollElementAtContentPointToOffset
Comment on attachment 366262 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366262&action=review >> LayoutTests/fast/scrolling/ios/scroll-iframe-005.html:29 >> + setTimeout(() => {testRunner.notifyDone(); }, 1000); > > Can you make these use UIHelper.immediateScrollElementAtContentPointToOffset and remove the timeouts? See > > LayoutTests/fast/scrolling/ios/overflow-scroll-overlap.html (and LayoutTests/fast/scrolling/resources/overflow-scroll-overlap.js) > > for an example. Mmh, I tried it (attachment 366274 [details]) but that does not seem to work. Not sure which mistake I made... Comment on attachment 366262 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366262&action=review >>> LayoutTests/fast/scrolling/ios/scroll-iframe-005.html:29 >>> + setTimeout(() => {testRunner.notifyDone(); }, 1000); >> >> Can you make these use UIHelper.immediateScrollElementAtContentPointToOffset and remove the timeouts? See >> >> LayoutTests/fast/scrolling/ios/overflow-scroll-overlap.html (and LayoutTests/fast/scrolling/resources/overflow-scroll-overlap.js) >> >> for an example. > > Mmh, I tried it (attachment 366274 [details]) but that does not seem to work. Not sure which mistake I made... I think it's worth trying. You're adding 2s of tests, and that's not a sustainable rate. (In reply to Simon Fraser (smfr) from comment #5) > >> LayoutTests/fast/scrolling/ios/overflow-scroll-overlap.html (and LayoutTests/fast/scrolling/resources/overflow-scroll-overlap.js) > >> > >> for an example. > > > > Mmh, I tried it (attachment 366274 [details]) but that does not seem to work. Not sure which mistake I made... > > I think it's worth trying. You're adding 2s of tests, and that's not a > sustainable rate. Yes, I agree with that. The thing is that I was not sure whether I made something wrong in my attempt attachment 366274 [details] as the change makes the test then fails when I tried the other day. Not sure why they pass with the other API. (In reply to Simon Fraser (smfr) from comment #5) > Comment on attachment 366262 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=366262&action=review > > >>> LayoutTests/fast/scrolling/ios/scroll-iframe-005.html:29 > >>> + setTimeout(() => {testRunner.notifyDone(); }, 1000); > >> > >> Can you make these use UIHelper.immediateScrollElementAtContentPointToOffset and remove the timeouts? See > >> > >> LayoutTests/fast/scrolling/ios/overflow-scroll-overlap.html (and LayoutTests/fast/scrolling/resources/overflow-scroll-overlap.js) > >> > >> for an example. > > > > Mmh, I tried it (attachment 366274 [details]) but that does not seem to work. Not sure which mistake I made... > > I think it's worth trying. You're adding 2s of tests, and that's not a > sustainable rate. I'm still not able to make them pass with the internal APIs so I'll move this to a separate bug and handle the other tests here. Created attachment 368235 [details] Patch Rebasing on top of bug 197280. Created attachment 368236 [details]
Patch (alternative version using immediateScrollElementAtContentPointToOffset)
With that version, the tests fail for me.
|