-
Notifications
You must be signed in to change notification settings - Fork 382
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
test(karma-integration): migrate event tests to Karma #1114
Conversation
Benchmark resultsBase commit: lwc-engine-benchmark
|
Benchmark resultsBase commit: lwc-engine-benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for migrating these.
30918bb
to
2405e30
Compare
Benchmark resultsBase commit: lwc-engine-benchmark
|
Benchmark resultsBase commit: lwc-engine-benchmark
|
function extractDataIds(root) { | ||
var nodes = {}; | ||
|
||
function processElement(elm) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
processElement
and acceptNode
can be safely extracted outside of extractDataIds
and reused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is wrapped into an iife, I think it makes more sense to keep all the code in there.
packages/integration-karma/test/shadow-dom/event-in-shadow-tree/event-post-dispatch.spec.js
Outdated
Show resolved
Hide resolved
packages/integration-karma/test/shadow-dom/event-in-shadow-tree/event-post-dispatch.spec.js
Outdated
Show resolved
Hide resolved
packages/integration-karma/test/shadow-dom/event-in-shadow-tree/event-post-dispatch.spec.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor optimizations, otherwise LGTM
test: add event propagation tests test: add inside slot tests test: event in shadow tree tests wip: revert removed tests wip: try to fix tests chore: add test comments chore: associated right bugs
d3ab07e
to
8cf6182
Compare
Benchmark resultsBase commit: lwc-engine-benchmark
|
Details
Add test related to events dispatching and propagation in simple shadow trees and nested shadow trees. Will add tests for slotted content in another PR.
Note: Most of the tests are related because of the following issues: #960, #1129, #1131, #1132, #1138, #1141
Does this PR introduce a breaking change?