Repository navigation
Fix document onscrollend event handler test - #37018
Open
dlrobertson wants to merge 1 commit into
Open
dlrobertson wants to merge 1 commit into
dlrobertson wants to merge 1 commit into
Conversation
Member
Author
|
CC: @domenic |
domenic
reviewed
Nov 18, 2022
| } | ||
|
|
||
| let document_scrollend_arrived = false; | ||
| function failOnScrollEnd(event) { |
Member
There was a problem hiding this comment.
Function name is no longer very accurate.
| element_scrollend_arrived = true; | ||
| } | ||
|
|
||
| let document_scrollend_arrived = false; |
Member
There was a problem hiding this comment.
It's actually body, not document, right?
| let document_scrollend_arrived = false; | ||
| function failOnScrollEnd(event) { | ||
| assert_true(false, "Scrollend should not be called on: " + event.target); | ||
| document_scrollend_arrived = true; |
Member
There was a problem hiding this comment.
It'd be good to test that event.target === document.body, since that's the actual spec change being made in whatwg/html#8461. (Before, it was event.target === document.)
dlrobertson
force-pushed
the
onscrollend-fix
branch
from
November 18, 2022 22:02
d64eb47 to
85e12a3
Compare
dlrobertson
commented
Nov 18, 2022
dlrobertson
left a comment
Member
Author
There was a problem hiding this comment.
I used document.scrollingElement instead of body since we're in standards mode.
dlrobertson
force-pushed
the
onscrollend-fix
branch
2 times, most recently
from
November 28, 2022 15:54
115f1a2 to
51c4a6a
Compare
The document onscrollend event handler test should pass if the document scrolling element scrolls.
dlrobertson
force-pushed
the
onscrollend-fix
branch
from
May 15, 2023 19:29
51c4a6a to
ab5023c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The document onscrollend event handler test should pass if the document scrolling element scrolls.
Related to: whatwg/html#8461