-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
22 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default { | ||
data: { | ||
"is-active": true, | ||
isSelected: true, | ||
myClass: 'one two' | ||
}, | ||
html: `<div class="one two is-active isSelected"></div>`, | ||
|
||
test ( assert, component, target, window ) { | ||
component.set({ "is-active": false }); | ||
|
||
assert.htmlEqual( target.innerHTML, ` | ||
<div class="one two isSelected"></div> | ||
` ); | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="{ myClass }" class:is-active class:isSelected class:not-used></div> |
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,16 +1,15 @@ | ||
export default { | ||
data: { | ||
"is-active": true, | ||
isSelected: true, | ||
myClass: 'one two' | ||
isSelected: true | ||
}, | ||
html: `<div class="one two is-active isSelected"></div>`, | ||
html: `<div class="is-active isSelected"></div>`, | ||
|
||
test ( assert, component, target, window ) { | ||
component.set({ "is-active": false }); | ||
|
||
assert.htmlEqual( target.innerHTML, ` | ||
<div class="one two isSelected"></div> | ||
<div class="isSelected"></div> | ||
` ); | ||
} | ||
}; |
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 +1 @@ | ||
<div class="{ myClass }" class:is-active class:isSelected class:not-used></div> | ||
<div class:is-active class:isSelected class:not-used></div> |