From: jeresig Date: Sat, 13 Feb 2010 08:25:27 +0000 (-0500) Subject: Added some tests to test repeated injected of scripts. Was fixed when fixing #5094. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=14e1200d59345e8ece8d6edfcf75af2e90ae8b72 Added some tests to test repeated injected of scripts. Was fixed when fixing #5094. --- diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index eafbf25..81ab3e4 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -866,7 +866,7 @@ test("clone() on XML nodes", function() { } var testHtml = function(valueObj) { - expect(26); + expect(29); jQuery.scriptorder = 0; @@ -917,16 +917,15 @@ var testHtml = function(valueObj) { jQuery("#main").html(valueObj('
')); - stop(); + jQuery("#main").html(valueObj("")); + jQuery("#main").html(valueObj("")); + jQuery("#main").html(valueObj("")); jQuery("#main").html(valueObj('')); jQuery("#main").html(valueObj('foo
')); - // it was decided that waiting to execute ALL scripts makes sense since nested ones have to wait anyway so this test case is changed, see #1959 jQuery("#main").html(valueObj("