-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(prettier): format fixture input files (#4972)
- Loading branch information
Showing
748 changed files
with
1,779 additions
and
1,839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
...@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { api, LightningElement } from "lwc"; | ||
import { api, LightningElement } from 'lwc'; | ||
export default class Test extends LightningElement { | ||
@api | ||
set first(value) {} | ||
get first() {} | ||
@api | ||
set first(value) {} | ||
get first() {} | ||
|
||
@api | ||
get second() { | ||
return this.s; | ||
} | ||
set second(value) { | ||
this.s = value; | ||
} | ||
@api | ||
get second() { | ||
return this.s; | ||
} | ||
set second(value) { | ||
this.s = value; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"namespace": "x", | ||
"name": "camelCase" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ld-register-decorators-for-anonymous-class-that-extends-non-lightning-element/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"apiVersion": 59 | ||
"apiVersion": 59 | ||
} |
2 changes: 1 addition & 1 deletion
2
...should-register-decorators-for-named-class-that-extends-non-lightning-element/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"apiVersion": 59 | ||
"apiVersion": 59 | ||
} |
2 changes: 1 addition & 1 deletion
2
...ecorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"apiVersion": 59 | ||
"apiVersion": 59 | ||
} |
2 changes: 1 addition & 1 deletion
2
...er-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"apiVersion": 59 | ||
"apiVersion": 59 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"loader": null, | ||
"strictSpecifier": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"loader": "@custom/loader", | ||
"strictSpecifier": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"loader": "@custom/loader", | ||
"strictSpecifier": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"loader": null, | ||
"strictSpecifier": true | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...es/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ponent/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...n-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ges/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"isExplicitImport": false | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
6 changes: 3 additions & 3 deletions
6
...src/__tests__/fixtures/adjacent-text-nodes/empty/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = undefined | ||
baz= null | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
6 changes: 3 additions & 3 deletions
6
...__/fixtures/adjacent-text-nodes/nonempty-dynamic/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = 'haha' | ||
bar = 0 | ||
baz = true | ||
foo = 'haha'; | ||
bar = 0; | ||
baz = true; | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
6 changes: 3 additions & 3 deletions
6
.../__tests__/fixtures/adjacent-text-nodes/nonempty/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = undefined | ||
baz = null | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
2 changes: 1 addition & 1 deletion
2
...wc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...ixtures/adjacent-text-nodes/with-comments/empty1/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = '' | ||
foo = ''; | ||
bar = ''; | ||
} |
2 changes: 1 addition & 1 deletion
2
...wc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...ixtures/adjacent-text-nodes/with-comments/empty2/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = '' | ||
foo = ''; | ||
bar = ''; | ||
} |
2 changes: 1 addition & 1 deletion
2
...wc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...ixtures/adjacent-text-nodes/with-comments/empty3/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = '' | ||
foo = ''; | ||
bar = ''; | ||
} |
2 changes: 1 addition & 1 deletion
2
...engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
2 changes: 1 addition & 1 deletion
2
...ures/adjacent-text-nodes/with-comments/nonempty1/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
foo = ''; | ||
} |
2 changes: 1 addition & 1 deletion
2
...engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...ures/adjacent-text-nodes/with-comments/nonempty2/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = 'bar' | ||
foo = ''; | ||
bar = 'bar'; | ||
} |
2 changes: 1 addition & 1 deletion
2
...engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...ures/adjacent-text-nodes/with-comments/nonempty3/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
baz = 'baz' | ||
foo = ''; | ||
baz = 'baz'; | ||
} |
2 changes: 1 addition & 1 deletion
2
...erver/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...acent-text-nodes/with-comments/preserve-comments/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = '' | ||
foo = ''; | ||
bar = ''; | ||
} |
2 changes: 1 addition & 1 deletion
2
...rver/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...cent-text-nodes/with-comments/preserve-comments2/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '' | ||
bar = '' | ||
foo = ''; | ||
bar = ''; | ||
} |
2 changes: 1 addition & 1 deletion
2
...rver/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
4 changes: 2 additions & 2 deletions
4
...cent-text-nodes/with-comments/preserve-comments3/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = 'foo' | ||
bar = 'bar' | ||
foo = 'foo'; | ||
bar = 'bar'; | ||
} |
24 changes: 12 additions & 12 deletions
24
...@lwc/engine-server/src/__tests__/fixtures/attribute-and-class-modify/modules/x/cmp/cmp.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
connectedCallback() { | ||
// Modify this component's class and attributes at runtime | ||
// We expect a data-lwc-host-mutated attr to be added with the mutated attribute names in unique sorted order | ||
this.setAttribute('data-foo', 'bar') | ||
this.classList.add('yolo') | ||
this.classList.add('woot') | ||
this.setAttribute('aria-label', 'haha') | ||
connectedCallback() { | ||
// Modify this component's class and attributes at runtime | ||
// We expect a data-lwc-host-mutated attr to be added with the mutated attribute names in unique sorted order | ||
this.setAttribute('data-foo', 'bar'); | ||
this.classList.add('yolo'); | ||
this.classList.add('woot'); | ||
this.setAttribute('aria-label', 'haha'); | ||
|
||
this.setAttribute('FOO', ''); | ||
this.removeAttribute('foo'); | ||
this.setAttribute('FOO', ''); | ||
this.removeAttribute('foo'); | ||
|
||
this.setAttribute('bar', ''); | ||
this.removeAttribute('BAR'); | ||
} | ||
this.setAttribute('bar', ''); | ||
this.removeAttribute('BAR'); | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
...ages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria-modify/modules/x/cmp/cmp.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
connectedCallback() { | ||
// Modify this component's aria properties at runtime, which should be reflected to attributes | ||
connectedCallback() { | ||
// Modify this component's aria properties at runtime, which should be reflected to attributes | ||
|
||
// Standard ARIA property | ||
this.ariaBusy = 'true' | ||
// Standard ARIA property | ||
this.ariaBusy = 'true'; | ||
|
||
// Non-standard LWC-specific legacy ARIA property | ||
this.ariaActiveDescendant = 'foo' | ||
} | ||
// Non-standard LWC-specific legacy ARIA property | ||
this.ariaActiveDescendant = 'foo'; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/child/child.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { LightningElement, api } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
@api dynamic | ||
@api dynamic; | ||
} |
Oops, something went wrong.