test runner: making 2 tests more flexible because they yield a slightly different...
[jquery.git] / test / unit / core.js
index 2827476..ea13de2 100644 (file)
@@ -279,7 +279,7 @@ test("add(String|Element|Array|undefined)", function() {
        equals( x[1].id, "x2", "Check on-the-fly element2" );\r
        \r
        var notDefined;\r
-       equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing." );\r
+       equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing" );\r
 });\r
 \r
 test("each(Function)", function() {\r
@@ -1619,7 +1619,7 @@ test("contents()", function() {
 });\r
 \r
 test("$.makeArray", function(){\r
-       expect(14);\r
+       expect(15);\r
        \r
        equals( $.makeArray($('html>*'))[0].nodeName, "HEAD", "Pass makeArray a jQuery object" );\r
        \r
@@ -1649,4 +1649,6 @@ test("$.makeArray", function(){
        equals( $.makeArray(window)[0], window, "Pass makeArray the window" );\r
        \r
        equals( $.makeArray(/a/)[0].constructor, RegExp, "Pass makeArray a regex" );\r
+       \r
+       ok( $.makeArray(document.getElementById('form')).length >= 13, "Pass makeArray a form (treat as elements)" );\r
 });
\ No newline at end of file