aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorMike Alsup <malsup@gmail.com>2007-01-02 12:39:13 +0000
committerMike Alsup <malsup@gmail.com>2007-01-02 12:39:13 +0000
commit9c073265de00b196ddeb298fa01328210ccffd89 (patch)
tree394870d85d8c11c4ff662ca4408fe08f36746524 /src/ajax
parent19b21ff10ae5f4800f367306cb589c5fe201eed3 (diff)
downloadjquery-9c073265de00b196ddeb298fa01328210ccffd89.tar.gz
jquery-9c073265de00b196ddeb298fa01328210ccffd89.zip
added evalScripts test
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/ajaxTest.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ajax/ajaxTest.js b/src/ajax/ajaxTest.js
index 6ca9cd7c6..c8fae234b 100644
--- a/src/ajax/ajaxTest.js
+++ b/src/ajax/ajaxTest.js
@@ -362,3 +362,17 @@ test("ajaxSetup()", function() {
});
$.ajax();
});
+
+test("evalScripts() with no script elements", function() {
+ expect(2);
+
+ var data = "this is just some bogus text";
+ $('#foo').html(data);
+ ok ( true, 'before evalScripts()');
+ try {
+ $('#foo').evalScripts();
+ } catch(e) {
+ ok (false, 'exception evaluating scripts: ' + e.message);
+ }
+ ok ( true, 'after evalScripts()');
+});