X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=d673711aa8a209baace6a5567f690ee2b453d045;hb=85afa7c1ba32e2e867b89e4222a4d27ea97dd20d;hp=40be7f87057c0a626179e3556a7bc26b9e3efc51;hpb=079d651e10bc19a28c49945617e842415dc41981;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 40be7f8..d673711 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -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" ); +});