From 948753842bd5aeda6ad6e27c269d706675f488d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 4 Jan 2008 11:33:34 +0000 Subject: [PATCH] Test for #2114 --- test/unit/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/core.js b/test/unit/core.js index 932d0a5e..835dde61 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -214,10 +214,11 @@ test("get(Number)", function() { }); test("add(String|Element|Array|undefined)", function() { - expect(8); + expect(9); isSet( $("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" ); isSet( $("#sndp").add( $("#en")[0] ).add( $("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" ); ok( $([]).add($("#form")[0].elements).length >= 13, "Check elements from array" ); + equals( $([]).add($("#form")[0].elements).length, $($("#form")[0].elements).length, "Array in constructor must equals array in add()" ); var x = $([]).add($("

xxx

")).add($("

xxx

")); ok( x[0].id == "x1", "Check on-the-fly element1" );