Enable test for document.write in eval'd scripts
This commit is contained in:
@@ -13,10 +13,11 @@ tape("test evalScript method", function(t) {
|
|||||||
evalScript(script)
|
evalScript(script)
|
||||||
t.equal(document.body.className, "executed", "script has been properly executed")
|
t.equal(document.body.className, "executed", "script has been properly executed")
|
||||||
|
|
||||||
// script.innerHTML = "document.write('failure')"
|
script.innerHTML = "document.write('failure')"
|
||||||
// var bodyText = document.body.text
|
document.body.text = "document.write hasn't been executed"
|
||||||
// evalScript(script)
|
var bodyText = document.body.text
|
||||||
// t.equal(document.body.text, bodyText, "document.write hasn't been executed")
|
evalScript(script)
|
||||||
|
t.equal(document.body.text, bodyText, "document.write hasn't been executed")
|
||||||
|
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user