]> source.dussan.org Git - jquery.git/commitdiff
Adjust isPlainObject test to run in an iframe.
authorjeresig <jeresig@gmail.com>
Wed, 24 Mar 2010 19:18:11 +0000 (15:18 -0400)
committerjeresig <jeresig@gmail.com>
Wed, 24 Mar 2010 19:18:11 +0000 (15:18 -0400)
test/unit/core.js

index eccf544bf05f3cd8373f389c0a0c8a537772a1cc..590bb0c869f70e56e50bdee098d0b2564916d344 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();
 });