Test case: parse [class] attribute declaration in hyperscript selector

This commit is contained in:
Barney Carroll 2016-11-19 17:57:22 +00:00
parent bc2b3c5fdc
commit 6b2750ea59

View file

@ -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 })