From 14e1200d59345e8ece8d6edfcf75af2e90ae8b72 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sat, 13 Feb 2010 03:25:27 -0500 Subject: [PATCH] Added some tests to test repeated injected of scripts. Was fixed when fixing #5094. --- test/unit/manipulation.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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("