From: James Huston Date: Mon, 15 Oct 2012 16:19:20 +0000 (-0400) Subject: Enforce expects in manipulation.js (https://github.com/jquery/2012-dev-summit/issues... X-Git-Tag: 1.9.0b1~221 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0c447434963bbdd6c631acfc38e51022db949a8b;p=jquery.git Enforce expects in manipulation.js (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-963 --- diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 45550e987..738fdf376 100644 --- a/test/unit/manipulation.js +++ b/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("
").clone().addClass("test").appendTo("
").end().hasClass("test"), false, "Check jQuery.fn.appendTo after jQuery.clone" ); strictEqual( jQuery("
").find("p").end().addClass("test").appendTo("
").end().hasClass("test"), false, "Check jQuery.fn.appendTo after jQuery.fn.find" ); strictEqual( jQuery("
").text("test").addClass("test").appendTo("
").end().hasClass("test"), false, "Check jQuery.fn.appendTo after jQuery.fn.text" );