Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add support for ElementInternals in synthetic shadow#5519

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
roxanne-baker wants to merge9 commits intosalesforce:master
base:master
Choose a base branch
Loading
fromroxanne-baker:synthetic-element-internals
Open
Changes from1 commit
Commits
Show all changes
9 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update packages/@lwc/integration-not-karma/test/component/LightningEl…
…ement.attachInternals/elementInternals/formAssociated/index.spec.jsCo-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
  • Loading branch information
@roxanne-baker@wjhsf
roxanne-baker andwjhsf authoredSep 30, 2025
commit32b2606db809297c1cd200d4a4081a4dbcc3c3b9
Original file line numberDiff line numberDiff line change
Expand Up@@ -127,25 +127,6 @@ describe.runIf(ENABLE_ELEMENT_INTERNALS_AND_FACE && typeof ElementInternals !==
expect(internals.labels[0]).toBe(label);
});

it('should throw error when trying to set readonly properties on form associated component', () => {
const elm = createElement('x-form-associated', { is: FormAssociated });
document.body.appendChild(elm);
const { internals } = elm;

const readOnlyProperties = [
'shadowRoot',
'states',
'form',
'willValidate',
'validity',
'validationMessage',
'labels',
];
readOnlyProperties.forEach((property) => {
expect(() => (internals[property] = 'test')).toThrow();
});
});

for (const prop of readOnlyProperties) {
it(`should throw error when trying to set ${prop} on form associated component`, () => {
const elm = createElement('x-form-associated', { is: FormAssociated });
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp