2 "Tests that having a bad time has correct cross frame behavior."
6 testRunner
.waitUntilDone();
11 for (var i
= 0; i
< 100; ++i
)
14 testPassed("Got 100 ouches.");
16 testFailed("Did not get 100 ouches. Got " + ouches
+ " instead.");
18 testRunner
.notifyDone();
21 var frame
= document
.getElementById("myframe");
23 frame
.contentDocument
.open();
24 frame
.contentDocument
.write(
25 "<!DOCTYPE html>\n<html><body><script type=\"text/javascript\">\n" +
26 "Array.prototype.__defineSetter__(0, function() { window.parent.ouches++; });\n" +
27 "window.parent.foo([]);\n" +
28 "</script></body></html>");
29 frame
.contentDocument
.close();