X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=ea13de2c71c8f62fdb19610c0b6681ff941042d8;hb=ca73ba5668734523c008147ecd9ea037cc841af4;hp=2827476934cacc2ffd0b8a27510d5c4c9d4ac5a5;hpb=ba48be3ada51aee683ce5992c5f00a8458f385f8;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 2827476..ea13de2 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -279,7 +279,7 @@ test("add(String|Element|Array|undefined)", function() { equals( x[1].id, "x2", "Check on-the-fly element2" ); var notDefined; - equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing." ); + equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing" ); }); test("each(Function)", function() { @@ -1619,7 +1619,7 @@ test("contents()", function() { }); test("$.makeArray", function(){ - expect(14); + expect(15); equals( $.makeArray($('html>*'))[0].nodeName, "HEAD", "Pass makeArray a jQuery object" ); @@ -1649,4 +1649,6 @@ test("$.makeArray", function(){ equals( $.makeArray(window)[0], window, "Pass makeArray the window" ); equals( $.makeArray(/a/)[0].constructor, RegExp, "Pass makeArray a regex" ); + + ok( $.makeArray(document.getElementById('form')).length >= 13, "Pass makeArray a form (treat as elements)" ); }); \ No newline at end of file