Skip to content
Permalink
Browse files

Enforce expects in manipulation.js (jquery/2012-dev-summit#53) Closes g…

  • Loading branch information...
james-huston authored and rwaldron committed Oct 15, 2012
1 parent 435fbe1 commit 0c447434963bbdd6c631acfc38e51022db949a8b
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/unit/manipulation.js
@@ -1901,6 +1901,8 @@ test("Guard against exceptions when clearing safeChildNodes", function() {
});

test("Ensure oldIE creates a new set on appendTo (#8894)", function() {
expect( 5 );

strictEqual( jQuery("<div/>").clone().addClass("test").appendTo("<div/>").end().hasClass("test"), false, "Check jQuery.fn.appendTo after jQuery.clone" );
strictEqual( jQuery("<div/>").find("p").end().addClass("test").appendTo("<div/>").end().hasClass("test"), false, "Check jQuery.fn.appendTo after jQuery.fn.find" );
strictEqual( jQuery("<div/>").text("test").addClass("test").appendTo("<div/>").end().hasClass("test"), false, "Check jQuery.fn.appendTo after jQuery.fn.text" );

0 comments on commit 0c44743

Please sign in to comment.
You can’t perform that action at this time.