diff options
author | Mike Alsup <malsup@gmail.com> | 2007-01-01 17:21:46 +0000 |
---|---|---|
committer | Mike Alsup <malsup@gmail.com> | 2007-01-01 17:21:46 +0000 |
commit | 41f62e13643462a88fa7d9015346196f3d37b966 (patch) | |
tree | 75c64fcb435836c72bb22ea1c1e1b01c8ddddfe3 /src | |
parent | ac78ad07c2a18a18ec7ce93d56824a55d56768bc (diff) | |
download | jquery-41f62e13643462a88fa7d9015346196f3d37b966.tar.gz jquery-41f62e13643462a88fa7d9015346196f3d37b966.zip |
Add test to show evalScripts/find problem.
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/coreTest.js | 14 |
1 files changed, 14 insertions, 0 deletions
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();
+ }
+ });
+});
|