Adjust isPlainObject test to run in an iframe.
[jquery.git] / test / unit / core.js
index eccf544..590bb0c 100644 (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();
 });