Skip to content

Commit 2d3cd5c

Browse files
authored
test: ignore rendered class order (#4737)
1 parent 1bb0bfa commit 2d3cd5c

File tree

23 files changed

+131
-15
lines changed

23 files changed

+131
-15
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<x-cmp aria-label="haha" class="yolo woot" data-foo="bar" data-lwc-host-mutated="aria-label bar class data-foo foo">
1+
<x-cmp aria-label="haha" class="woot yolo" data-foo="bar" data-lwc-host-mutated="aria-label bar class data-foo foo">
22
<template shadowrootmode="open">
33
</template>
44
</x-cmp>

packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/expected.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<x-attribute-component-global-html>
22
<template shadowrootmode="open">
3-
<x-child accesskey="A" class="foo bar" contenteditable="true" data-test="test" draggable="true" hidden id="foo" itemprop="foo" spellcheck="true" style="color: red; background: blue;" tabindex="-1">
3+
<x-child accesskey="A" class="bar foo" contenteditable="true" data-test="test" draggable="true" hidden id="foo" itemprop="foo" spellcheck="true" style="color: red; background: blue;" tabindex="-1">
44
<template shadowrootmode="open">
55
Passthrough properties:
66
<ul>

packages/@lwc/engine-server/src/__tests__/fixtures/attribute-dynamic-with-scoped-css/expected.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<style class="lwc-47oqt8q93b2" type="text/css">
44
div.lwc-47oqt8q93b2 {color: black;}div.kree.lwc-47oqt8q93b2 {color: blue;}
55
</style>
6-
<div class="lwc-47oqt8q93b2 kree">
6+
<div class="kree lwc-47oqt8q93b2">
77
In the middle of my backswing?!
88
</div>
99
</template>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<x-attribute-global-html>
22
<template shadowrootmode="open">
3-
<div accesskey="A" class="foo bar" contenteditable="true" data-test="test" draggable="true" hidden id="foo" itemprop="foo" lang="fr" spellcheck="true" style="color: red; background: blue;" tabindex="-1" title="foo">
3+
<div accesskey="A" class="bar foo" contenteditable="true" data-test="test" draggable="true" hidden id="foo" itemprop="foo" lang="fr" spellcheck="true" style="color: red; background: blue;" tabindex="-1" title="foo">
44
</div>
55
</template>
66
</x-attribute-global-html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<x-attribute-static>
22
<template shadowrootmode="open">
3-
<div class="foo bar foo-bar" data-foo="foo" style="color: red; background-color: blue;">
3+
<div class="bar foo foo-bar" data-foo="foo" style="color: red; background-color: blue;">
44
</div>
55
</template>
66
</x-attribute-static>

packages/@lwc/engine-server/src/__tests__/fixtures/scoped-styles-with-existing-class/error.txt

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<x-component class="lwc-6a8uqob2ku4-host">
2+
<template shadowrootmode="open">
3+
<style class="lwc-6a8uqob2ku4" type="text/css">
4+
div.lwc-6a8uqob2ku4 {background-color: wheat;}
5+
</style>
6+
<div class="foo lwc-6a8uqob2ku4">
7+
</div>
8+
<div class="bar lwc-6a8uqob2ku4">
9+
</div>
10+
</template>
11+
</x-component>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const tagName = 'x-component';
2+
export { default } from 'x/component';
3+
export * from 'x/component';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<div class="foo"></div>
3+
<div class={clazz}></div>
4+
</template>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { LightningElement } from 'lwc';
2+
3+
export default class extends LightningElement {
4+
clazz = 'bar'
5+
}

0 commit comments

Comments
 (0)