Skip to content

Commit

Permalink
test: add render mode mismatch test (#4664)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Oct 21, 2024
1 parent b9947b4 commit ed5327f
Show file tree
Hide file tree
Showing 30 changed files with 78 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<x-test>
</x-test>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-test';
export { default } from 'x/test';
export * from 'x/test';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { LightningElement, track } from 'lwc';

export default class extends LightningElement {
static renderMode = 'light'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<x-test>
<template shadowrootmode="open">
</template>
</x-test>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-test';
export { default } from 'x/test';
export * from 'x/test';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { LightningElement, track } from 'lwc';

export default class extends LightningElement {
static renderMode = 'shadow'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<x-test>
<template shadowrootmode="open">
</template>
</x-test>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-test';
export { default } from 'x/test';
export * from 'x/test';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template lwc:render-mode="light">
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { LightningElement, track } from 'lwc';

export default class extends LightningElement {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<x-test>
<template shadowrootmode="open">
</template>
</x-test>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-test';
export { default } from 'x/test';
export * from 'x/test';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template lwc:render-mode="light">
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { LightningElement, track } from 'lwc';

export default class extends LightningElement {
static renderMode = 'shadow'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<x-test>
<template shadowrootmode="open">
</template>
</x-test>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-test';
export { default } from 'x/test';
export * from 'x/test';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template lwc:render-mode="shadow">
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { LightningElement, track } from 'lwc';

export default class extends LightningElement {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<x-test>
</x-test>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-test';
export { default } from 'x/test';
export * from 'x/test';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<template lwc:render-mode="shadow">
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { LightningElement, track } from 'lwc';

export default class extends LightningElement {
static renderMode = 'light'
}

0 comments on commit ed5327f

Please sign in to comment.