blob: 3dd9b1e5ce214f1342772311fa6f6f3d11ab9ee9 [file] [log] [blame]
<pre id="console"></pre>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setCanOpenWindows();
layoutTestController.setCloseRemainingWindowsWhenComplete();
layoutTestController.waitUntilDone();
}
var logString = "";
function log(s)
{
logString += s + "<br />";
}
function logTitle(s)
{
log("<b>" + s + "<b>");
}
// Open test window
var win = window.open("resources/closure-access-after-navigation-window-child-1.html");
function done()
{
document.getElementById("console").innerHTML = logString;
if (window.layoutTestController)
layoutTestController.notifyDone();
}
Object.prototype.myVal = "parent";
var myGlobal = {
myGlobalVal: "parent"
};
getObjectOfParent = function()
{
return {};
};
getGlobalOfParent = function()
{
return myGlobal;
};
test = function(p, val)
{
try {
log(p + "()." + val + " = " + window[p]()[val]);
} catch(e) {
log(e.message);
}
};
</script>