X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=3edc3033354fa27c408a18c71bb12f13c9c364db;hb=eff56887b164b489bb792f87770b7ba69e8f54df;hp=5b2d746974d9fd1fd5aab25d8fd296cdb5fb9819;hpb=acf102237f9e26c1b864bf6e432f65040b477851;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 5b2d746..3edc303 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -575,11 +575,16 @@ jQuery.fn = jQuery.prototype = { * @example $("p").wrap("
"); * @before

Test Paragraph.

* @result

Test Paragraph.

+ * + * @test var defaultText = 'Try them out:' + * var result = $('#first').wrap('
').text(); + * ok( defaultText == result, 'Check for simple wrapping' ); + * ok( $('#first').parent().parent().is('.red'), 'Check if wrapper div has class "red"' ); * * @test var defaultText = 'Try them out:' - * @test var result = $('#first').wrap('
xxyy
').text() + * var result = $('#first').wrap('
xxyy
').text() * ok( 'xx' + defaultText + 'yy' == result, 'Check for wrapping' ); - * @test ok( $('#first').parent().parent().is('.red'), 'Check if wrapper div has class "red"' ); + * ok( $('#first').parent().parent().is('.red'), 'Check if wrapper div has class "red"' ); * * @name wrap * @type jQuery