Revert "More performance improvements + etc."

This commit is contained in:
Isiah Meadows 2015-12-16 10:53:27 -05:00
parent e364121ffb
commit 998704a722
28 changed files with 1325 additions and 3206 deletions

View file

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