Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement changes to event path iteration #2536

Merged
merged 1 commit into from May 12, 2019

Conversation

Zirro
Copy link
Member

@Zirro Zirro commented Mar 19, 2019

This is an implementation of the changes made to the event path iteration in whatwg/dom#686, though it's currently causing many existing tests to fail. I've not yet been able to determine whether this is due to an issue with the spec or a bug in this implementation.

@domenic
Copy link
Member

domenic commented Mar 26, 2019

@pmdartus I noticed you opened whatwg/dom#742. Do you think that could be what's causing all the test failures? Even if not, you might be best-positioned to help @Zirro debug the issues here.

@pmdartus
Copy link
Member

I will try to debug soon. I am suspecting another issue with the spec if there are so many failures unrelated to composed.

@pmdartus
Copy link
Member

With the change proposed whatwg/dom#742 (comment), tests start passing again. In the current state of the spec, the load event handler is never invoked causing the test harness to timeout.

That being said there is still a test failure (dom/events/Event-dispatch-handlers-changed.html) that I am still investigating.

@annevk
Copy link

annevk commented Apr 10, 2019

That was a mistake in that test, PR here: web-platform-tests/wpt#16307.

@pmdartus
Copy link
Member

Thanks for the info @annevk.

@domenic
Copy link
Member

domenic commented Apr 20, 2019

@Zirro, up for updating this with whatwg/dom#750, and probably rolling the web platform tests too?

@Zirro
Copy link
Member Author

Zirro commented May 2, 2019

I've updated the code to include the changes from whatwg/dom#750.

@@ -377,7 +377,7 @@ describe("level2/events", () => {
this.plist.addEventListener("foo", this.monitor.handleEvent, true);
this.plist.addEventListener("foo", this.monitor.handleEvent, false);
this.plist.dispatchEvent(this.event);
assert.equal(this.monitor.atEvents.length, 4, 'should be at 4 events');
assert.equal(this.monitor.atEvents.length, 2, 'should be at 2 events'); // Changed from 4 to 2 after https://github.com/whatwg/dom/commit/98564fc5284439d2555f545fa04288e230a37a03
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domenic I'm not familiar enough with these older tests, but it might be worth verifying that this change isn't an indication of a problem with the spec change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domenic domenic merged commit 3781125 into jsdom:master May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants