});\r
\r
test("append(String|Element|Array<Element>|jQuery)", function() {\r
- expect(10);\r
+ expect(11);\r
var defaultText = 'Try them out:'\r
var result = $('#first').append('<b>buga</b>');\r
ok( result.text() == defaultText + 'buga', 'Check if text appending works' );\r
$("#sap").append( 5 );\r
ok( $("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );\r
\r
+ reset();\r
+ $("#sap").append( " text with spaces " );\r
+ ok( $("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );\r
+\r
reset();\r
ok( $("#sap").append([]), "Check for appending an empty array." );\r
ok( $("#sap").append(""), "Check for appending an empty string." );\r
//console.log( close[0]); // it's the <a> and not a <span> element\r
return false;\r
}).click();\r
-});
\ No newline at end of file
+});\r
[0,"",""];
// Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + s + wrap[2];
+ div.innerHTML = wrap[1] + arg + wrap[2];
// Move to the right depth
while ( wrap[0]-- )