Adjust isPlainObject test to run in an iframe.

This commit is contained in:
jeresig 2010-03-24 15:18:11 -04:00 committed by wycats
parent 568db29c2b
commit d4aff802da

View file

@ -271,7 +271,7 @@ test("isPlainObject", function() {
var doc = iframe.contentDocument || iframe.contentWindow.document;
doc.open();
doc.write("<body onload='window.top.iframeDone(Object);'>");
doc.write("<body onload='window.parent.iframeDone(Object);'>");
doc.close();
});