diff options
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index f690b721d..44bb9110c 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -16,6 +16,11 @@ test("text()", function() { notEqual( jQuery(document).text(), "", "Retrieving text for the document retrieves all text (#10724)."); }); +test("text(undefined)", function() { + expect(1); + equal( jQuery("#foo").text("<div").text(undefined)[0].innerHTML, "<div", ".text(undefined) is chainable (#5571)" ); +}); + var testText = function(valueObj) { expect(4); var val = valueObj("<div><b>Hello</b> cruel world!</div>"); @@ -1207,6 +1212,11 @@ test("clone() on XML nodes", function() { }); } +test("html(undefined)", function() { + expect(1); + equal( jQuery("#foo").html("<i>test</i>").html(undefined).html().toLowerCase(), "<i>test</i>", ".html(undefined) is chainable (#5571)" ); +}); + var testHtml = function(valueObj) { expect(34); |