X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=3edc3033354fa27c408a18c71bb12f13c9c364db;hb=eff56887b164b489bb792f87770b7ba69e8f54df;hp=feb71e41912f0a0cbba9e029705b6ade0e55e49e;hpb=b5220adbbcbb6216af176fa38c626aca53ec8d0f;p=jquery.git
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index feb71e4..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 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
@@ -1977,7 +1982,8 @@ jQuery.extend({
* @example $.map( [0,1,2], function(i){
* return [ i, i + 1 ];
* });
- * @result [0, 1, 1, 2, 2, 3]
*
+ * @result [0, 1, 1, 2, 2, 3]
+ *
* @name $.map
* @type Array
* @param Array array The Array to translate.