Added support for .contents(). Returns ALL child nodes for an element - except for...
[jquery.git] / src / jquery / coreTest.js
index 40be7f8..d673711 100644 (file)
@@ -996,3 +996,10 @@ test("map()", function() {
                "Single Map"
        );
 });
+
+test("contents()", function() {
+       expect(3);
+       equals( $("#ap").contents().length, 9, "Check element contents" );
+       ok( $("#iframe").contents()[0], "Check existance of IFrame document" );
+       ok( $("#iframe").contents()[0].body, "Check existance of IFrame body" );
+});