Added test for #968
[jquery.git] / src / jquery / coreTest.js
index 98a1ba8..77fd17e 100644 (file)
@@ -826,3 +826,12 @@ test("$().html().evalScripts() Eval's Scripts Twice in Firefox, see #975", funct
        expect(1);\r
        $("#main").html('<script type="text/javascript">ok( true, "execute script" );</script>').evalScripts();\r
 });\r
+\r
+test("$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968", function() {\r
+       var f = frames["iframe"].document;\r
+    f.open();\r
+    f.write("<html><body></body></html>");\r
+    f.close();\r
+    $("<div>Testing</div>").appendTo(f.body);\r
+    ok( true, "passed" );\r
+});
\ No newline at end of file