Revert "More performance improvements + etc."
This commit is contained in:
parent
e364121ffb
commit
998704a722
28 changed files with 1325 additions and 3206 deletions
|
|
@ -29,9 +29,7 @@ describe("m.trust()", function () {
|
|||
it("works with mixed trusted content in div", function () {
|
||||
var root = document.createElement("div")
|
||||
m.render(root, [m.trust("<p>1</p><p>2</p>"), m("i", "foo")])
|
||||
// Case-insensitive test to work around weird heisenbug with the
|
||||
// browser
|
||||
expect(root.childNodes[2].tagName).to.equalIgnoreCase("I")
|
||||
expect(root.childNodes[2].tagName).to.equal("I")
|
||||
})
|
||||
|
||||
it("works with mixed trusted content in text nodes", function () {
|
||||
|
|
@ -40,9 +38,7 @@ describe("m.trust()", function () {
|
|||
m.trust("<p>1</p>123<p>2</p>"),
|
||||
m("i", "foo")
|
||||
])
|
||||
// Case-insensitive test to work around weird heisenbug with the
|
||||
// browser
|
||||
expect(root.childNodes[3].tagName).to.equalIgnoreCase("I")
|
||||
expect(root.childNodes[3].tagName).to.equal("I")
|
||||
})
|
||||
|
||||
// FIXME: this is a bug (trusted string's contents rendered as just
|
||||
|
|
@ -56,9 +52,7 @@ describe("m.trust()", function () {
|
|||
m("td", "foo")
|
||||
])
|
||||
|
||||
// Case-insensitive test to work around weird heisenbug with the
|
||||
// browser
|
||||
expect(root.childNodes[2].tagName).to.equalIgnoreCase("TD")
|
||||
expect(root.childNodes[2].tagName).to.equal("TD")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue