Test case: parse [class] attribute declaration in hyperscript selector
This commit is contained in:
parent
bc2b3c5fdc
commit
6b2750ea59
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
test(function () { return m("div").tag === "div" })
|
||||
test(function () { return m(".foo").tag === "div" })
|
||||
test(function () { return m(".foo").attrs.className === "foo" })
|
||||
test(function () { return m("[class=a]").attrs.className === "a" })
|
||||
test(function () { return m("[title=bar]").tag === "div" })
|
||||
test(function () { return m("[title=bar]").attrs.title === "bar" })
|
||||
test(function () { return m("[empty]").attrs.empty === true })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue