From 41f62e13643462a88fa7d9015346196f3d37b966 Mon Sep 17 00:00:00 2001 From: Mike Alsup Date: Mon, 1 Jan 2007 17:21:46 +0000 Subject: [PATCH] Add test to show evalScripts/find problem. --- src/jquery/coreTest.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 2692715fa..d7fa5c7cc 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -426,3 +426,17 @@ test("removeClass(String) - add three classes and remove again", function() { test("removeAttr(String", function() { ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); }); + +test("evalScripts() with no script elements", function() { + expect(2); + stop(); + $.ajax({ + url: 'data/text.php?' + new Date().getTime(), + success: function(data, status) { + ok ( true, 'before evalScripts()'); + jQuery('#output').html(data).evalScripts(); + ok ( true, 'after evalScripts()'); + start(); + } + }); +});