Updating the source version to 1.5.1pre.
[jquery.git] / test / unit / core.js
index 24de5c9..bce0de0 100644 (file)
@@ -537,29 +537,29 @@ test("end()", function() {
 
 test("length", function() {
        expect(1);
-       equals( jQuery("p").length, 6, "Get Number of Elements Found" );
+       equals( jQuery("#main p").length, 6, "Get Number of Elements Found" );
 });
 
 test("size()", function() {
        expect(1);
-       equals( jQuery("p").size(), 6, "Get Number of Elements Found" );
+       equals( jQuery("#main p").size(), 6, "Get Number of Elements Found" );
 });
 
 test("get()", function() {
        expect(1);
-       same( jQuery("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" );
+       same( jQuery("#main p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" );
 });
 
 test("toArray()", function() {
        expect(1);
-       same( jQuery("p").toArray(),
+       same( jQuery("#main p").toArray(),
                q("firstp","ap","sndp","en","sap","first"),
                "Convert jQuery object to an Array" )
 })
 
 test("get(Number)", function() {
        expect(2);
-       equals( jQuery("p").get(0), document.getElementById("firstp"), "Get A Single Element" );
+       equals( jQuery("#main p").get(0), document.getElementById("firstp"), "Get A Single Element" );
        strictEqual( jQuery("#firstp").get(1), undefined, "Try get with index larger elements count" );
 });
 
@@ -1129,9 +1129,9 @@ test("jQuery.when() - joined", function() {
        });
 });
 
-test("jQuery.subclass", function(){
+test("jQuery.sub() - Static Methods", function(){
     expect(18);
-    var Subclass = jQuery.subclass();
+    var Subclass = jQuery.sub();
     Subclass.extend({
         topLevelMethod: function() {return this.debug;},
         debug: false,
@@ -1151,7 +1151,7 @@ test("jQuery.subclass", function(){
     equal(jQuery.ajax, Subclass.ajax, 'The subclass failed to get all top level methods');
         
     //Create a SubSubclass
-    var SubSubclass = Subclass.subclass();
+    var SubSubclass = Subclass.sub();
     
     //Make Sure the SubSubclass inherited properly
     ok(SubSubclass.topLevelMethod() === false, 'SubSubclass.topLevelMethod thought debug was true');
@@ -1178,11 +1178,11 @@ test("jQuery.subclass", function(){
     equal(jQuery.ajax, Subclass.ajax, 'The subclass failed to get all top level methods');
 });
 
-test("jQuery.subclass()", function(){
+test("jQuery.sub() - .fn Methods", function(){
        expect(378);
 
-       var Subclass = jQuery.subclass(),
-                       SubclassSubclass = Subclass.subclass(),
+       var Subclass = jQuery.sub(),
+                       SubclassSubclass = Subclass.sub(),
                        jQueryDocument = jQuery(document),
                        selectors, contexts, methods, method, arg, description;