Uh oh!
There was an error while loading. Please reload this page.
Add EventTarget WPT test AddEventListenerOptions-once - #34169
Add EventTarget WPT test AddEventListenerOptions-once#34169Ethan-Arrowood wants to merge 2 commits into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
benjamingr
left a comment
There was a problem hiding this comment.
LGTM + please add the reference - thanks for this!
Ethan-Arrowood
commented
Jul 7, 2020
This test is what is failing the CI: https://github.com/nodejs/node/pull/34169/checks?check_run_id=831452407#step:11:10071 Any ideas? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
New commit moves away from the count checking and reorganizes the tests using mustCall. This now deviates a bit from the WPT tests but I believe achieves the same thing. If this is not the intended change I can revert the last commit! One note; I tried implementing this: {constdocument=newEventTarget();consthandler=common.mustCall(2)// Both should only fire on first eventdocument.addEventListener('test',handler,{once: true});document.addEventListener('test',handler,{once: true});// Fire eventsdocument.dispatchEvent(newEvent('test'));document.dispatchEvent(newEvent('test'));}But it fails - probably my own misunderstanding of common.mustCall. Maybe you two have some in sight here? |
jasnell
commented
Jul 7, 2020
It's failing because, unlike |
Ethan-Arrowood
commented
Jul 7, 2020
Awesome worked like a charm! Thank you |
Ethan-Arrowood
commented
Aug 3, 2020
Hey! I have another test file ready to go. Should I push it to this PR/branch or include it in another branch? |
jasnell
commented
Aug 3, 2020
@Ethan-Arrowood ... just push it here. We can do another CI run on this and give it another day to land. |
Uh oh!
There was an error while loading. Please reload this page.
lundibundi
commented
Aug 23, 2020
@Ethan-Arrowood could you please squash/fixup the appropriate commits and remove the merge commit, our CI doesn't handle merge commits very well? This looks ready to land to me after a successful CI. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
829dbba to
ba06c98CompareEthan-Arrowood
commented
Aug 24, 2020
Alright squashed and fixed up your comments. |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ethan-Arrowood
commented
Nov 6, 2020
This pr #33621 introduces some conflicts with test-eventtarget-whatwg-once.js. I'm pushing another rebase that fixes some of that. I guess this PR needs to be reviewed again |
e6e632c to
9449f27CompareUh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Nov 9, 2020
Ethan-Arrowood
commented
Nov 9, 2020
@aduh95 let me know if theres anything else I should do here |
aduh95
commented
Nov 9, 2020
@Ethan-Arrowood can you rebase to resolve the git conflict please? |
add reference comments for WPT tests convert to common mustCall Update test/parallel/test-eventtarget-whatwg-once.js Co-authored-by: James M Snell <jasnell@gmail.com> Update test/parallel/test-eventtarget-whatwg-passive.js Co-authored-by: James M Snell <jasnell@gmail.com> convert other tests to utilize common mustcall improve test with bind add customevent wpt add no-unused-vars comment reorder header utilize common.mustcall remove internal and use global EventTarget
9449f27 to
7f6ada3CompareUh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
commented
Nov 10, 2020
Add WPT AddEventListenerOptions-once test. PR-URL: #34169 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
aduh95
commented
Nov 10, 2020
Landed in 7cba786 |
Add WPT AddEventListenerOptions-once test. PR-URL: #34169 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesFirst of many PRs adding WPT tests for EventTarget (and eventually AbortController)