Skip to content
Permalink
Browse files
Fix for bug #962.
  • Loading branch information
jeresig committed Mar 1, 2007
1 parent 6b729ff commit 9791855ea91988e9ff02063e0c5ece759d8ba898
Showing with 7 additions and 3 deletions.
  1. +6 −2 src/jquery/coreTest.js
  2. +1 −1 src/jquery/jquery.js
@@ -213,7 +213,7 @@ test("wrap(String|Element)", function() {
});

test("append(String|Element|Array<Element>|jQuery)", function() {
expect(10);
expect(11);
var defaultText = 'Try them out:'
var result = $('#first').append('<b>buga</b>');
ok( result.text() == defaultText + 'buga', 'Check if text appending works' );
@@ -238,6 +238,10 @@ test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {
$("#sap").append( 5 );
ok( $("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );

reset();
$("#sap").append( " text with spaces " );
ok( $("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );

reset();
ok( $("#sap").append([]), "Check for appending an empty array." );
ok( $("#sap").append(""), "Check for appending an empty string." );
@@ -698,4 +702,4 @@ test("click() context", function() {
//console.log( close[0]); // it's the <a> and not a <span> element
return false;
}).click();
});
});
@@ -1472,7 +1472,7 @@ jQuery.extend({
[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]-- )

0 comments on commit 9791855

Please sign in to comment.