diff options
author | Oleg <markelog@gmail.com> | 2013-01-09 13:23:34 +0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-01-09 09:52:01 -0500 |
commit | 8e6c1ba92faf830d40cafe7a4deb4ad5ab9045fe (patch) | |
tree | e6ed3b2aa90a10487e333a20c3447c8f697bed34 /test | |
parent | 2f6b3f818fc51ee6ae44be69dc6b15b3d7a2dad4 (diff) | |
download | jquery-8e6c1ba92faf830d40cafe7a4deb4ad5ab9045fe.tar.gz jquery-8e6c1ba92faf830d40cafe7a4deb4ad5ab9045fe.zip |
Ref gh-1117: Don't stop on a falsy value in buildFragment. Close gh-1124.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/manipulation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index d2bec12f5..e933a7aff 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -395,7 +395,7 @@ var testAppendForObject = function( valueObj, isFragment ) { var testAppend = function( valueObj ) { - expect( 77 ); + expect( 78 ); testAppendForObject( valueObj, false ); testAppendForObject( valueObj, true ); @@ -469,13 +469,13 @@ var testAppend = function( valueObj ) { jQuery("#table colgroup").append( valueObj("<col/>") ); equal( jQuery("#table colgroup col").length, 1, "Append col" ); - jQuery("#form") .append( valueObj("<select id='appendSelect1'></select>") ) .append( valueObj("<select id='appendSelect2'><option>Test</option></select>") ); t( "Append Select", "#appendSelect1, #appendSelect2", [ "appendSelect1", "appendSelect2" ] ); equal( "Two nodes", jQuery("<div />").append( "Two", " nodes" ).text(), "Appending two text nodes (#4011)" ); + equal( jQuery("<div />").append( "1", "", 3 ).text(), "13", "If median is false-like value, subsequent arguments should not be ignored" ); // using contents will get comments regular, text, and comment nodes j = jQuery("#nonnodes").contents(); |