Browse files

Test for Issue #12 - nested scripts

  • Loading branch information...
1 parent 5ecabc4 commit ac55c50d55ccf02315f607a0246abd86c639fcf2 @gregersrygg committed Oct 21, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/crapLoader-test.js
View
6 test/crapLoader-test.js
@@ -250,5 +250,11 @@ buster.testCase("crapLoader", {
document.close();
document.write(" After");
}, "Before Works After", done);
+ },
+
+ "Scripts should execute no matter what depth in the DOM-tree": function (done) {
+ testFuncOutput(function () {
+ document.write("<div><scr"+"ipt>document.write(\"inner\")</scr"+"ipt><span>HTML</span><"+"/div>");
+ }, "<div>inner<span>HTML</span></div>", done);
}
});

0 comments on commit ac55c50

Please sign in to comment.