diff options
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 525c1387b..5d794b9bc 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -917,6 +917,13 @@ test("before and after w/ empty object (#10812)", function() { equal( res.wrapAll("<div/>").parent().text(), "()", "correctly appended text" ); }); +test("before and after on disconnected node (#10517)", function() { + expect(2); + + equal( jQuery("<input type='checkbox'/>").before("<div/>").length, 2, "before() returned all elements" ); + equal( jQuery("<input type='checkbox'/>").after("<div/>").length, 2, "after() returned all elements" ); +}); + test("insertBefore(String|Element|Array<Element>|jQuery)", function() { expect(4); var expected = "This is a normal link: bugaYahoo"; |