Fix external scripts events #118

Merged
robinnorth merged 2 commits from fix/external-scripts-events into master 2018-01-31 16:46:29 -05:00
Showing only changes of commit 31e1e7e405 - Show all commits

View File

@@ -13,10 +13,11 @@ tape("test evalScript method", function(t) {
evalScript(script)
t.equal(document.body.className, "executed", "script has been properly executed")
// script.innerHTML = "document.write('failure')"
// var bodyText = document.body.text
// evalScript(script)
// t.equal(document.body.text, bodyText, "document.write hasn't been executed")
script.innerHTML = "document.write('failure')"
document.body.text = "document.write hasn't been executed"
var bodyText = document.body.text
evalScript(script)
t.equal(document.body.text, bodyText, "document.write hasn't been executed")
t.end()
})