X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=db8b58d637c7ba130a3b32a8fba2efffa7eca164;hb=80a149b82831defa1a9f724801daefda0a8c5685;hp=ee4438194f3c57725a9e9e0eab12db909968b5d0;hpb=54035207fe91cb57f49bb8c0c9f7b4ada8d05346;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index ee44381..db8b58d 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -118,22 +118,22 @@ test("isFunction", function() { test("length", function() { expect(1); - ok( $("div").length == 2, "Get Number of Elements Found" ); + ok( $("p").length == 6, "Get Number of Elements Found" ); }); test("size()", function() { expect(1); - ok( $("div").size() == 2, "Get Number of Elements Found" ); + ok( $("p").size() == 6, "Get Number of Elements Found" ); }); test("get()", function() { expect(1); - isSet( $("div").get(), q("main","foo"), "Get All Elements" ); + isSet( $("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" ); }); test("get(Number)", function() { expect(1); - ok( $("div").get(0) == document.getElementById("main"), "Get A Single Element" ); + ok( $("p").get(0) == document.getElementById("firstp"), "Get A Single Element" ); }); test("add(String|Element|Array)", function() {