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

test(integration-karma): more shadow transitivity tests #2864

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

nolanlawson
Copy link
Collaborator

Details

Follow-up to #2859. This adds more tests to ensure that transitive shadowMode calculation is working correctly.

I generated these tests using a small script; I did not write these by hand. 🙂

I had previously considered adding some slot tests too, but that seemed a bit overkill, especially since the slot doesn't affect ownership; whoever is doing the slotting is the owner for the purposes of transitivity calculation.

Does this pull request introduce a breaking change?

  • ✅ No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • ✅ No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from ekashida June 3, 2022 18:52
Component: GrandparentResetParentResetChildReset,
tagName: 'x-grandparent-reset-parent-reset-child-reset',
nativeLeaf: false,
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess we could add Light mode tests here too, but maybe that would really be overkill. 🙂

Copy link
Member

@ekashida ekashida left a comment

Choose a reason for hiding this comment

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

lgtm!

@nolanlawson nolanlawson merged commit 8685e89 into master Jun 6, 2022
@nolanlawson nolanlawson deleted the nolan/more-tests branch June 6, 2022 18:58
ravijayaramappa added a commit that referenced this pull request Jun 13, 2022
* fix: only remove slot children in synthetic shadow (#2843)

* fix: only remove slot children in synthetic shadow

* fix: use case block

* fix: only add version mismatch test code in karma (#2852)

* test(integration-karma): ensure constructable stylesheets are re-used (#2844)

* test(integration-karma): ensure constructable stylesheets are re-used

* test: add test for shared style

* chore(nucleus): remove more downstreams (#2855)

* chore(nucleus): remove another downstream (#2857)

* docs: fix typo in template compiler readme (#2848)

* docs: fix typo in template compiler readme

* docs: rewording usage of lwc dynamic directive

Co-authored-by: Eugene Kashida <ekashida@gmail.com>

Co-authored-by: Eugene Kashida <ekashida@gmail.com>

* test(integration-karma): update ACT components (#2862)

* fix(engine-core): revert "optimize computation of transitive shadow mode" (#2859)

* fix(engine-core): correctly compute shadowMode

* fix: fix comment

* fix: update packages/integration-karma/test/mixed-shadow-mode/dual-component/index.spec.js

Co-authored-by: Eugene Kashida <ekashida@gmail.com>

* fix: fix another one

* fix: improve tests

* fix: improve tests

* fix: improve test

* fix: revert

* Revert "refactor(engine): optimize computation of transitive shadow mode (#2803)"

This reverts commit 95ce4c3.

Co-authored-by: Eugene Kashida <ekashida@gmail.com>

* chore: release v2.14.1 (#2866)

* refactor(engine-core): encapsulate renderer as an object and allow it to be injectable in vnodes (#2763)

* refactor(engine-core): passing the renderer from an import statement in compiled templates

Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
Co-authored-by: Pierre-Marie Dartus <p.dartus@salesforce.com>
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>

* test(integration-karma): more shadow transitivity tests (#2864)

* chore: release v.2.14.2 @W-7258582 (#2871)

* Revert "chore: release v2.14.1 (#2866) @W-7258582 (#2867)"

This reverts commit 518ab2e.

Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
Co-authored-by: Mohan Raj Rajamanickam <1509984+mohanraj-r@users.noreply.github.com>
Co-authored-by: Eugene Kashida <ekashida@gmail.com>
Co-authored-by: Ravi Jayaramappa <ravi.jayaramappa@salesforce.com>
Co-authored-by: Caridy Patiño <caridy@gmail.com>
Co-authored-by: Pierre-Marie Dartus <p.dartus@salesforce.com>
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.

2 participants