Skip to content
Permalink
Browse files

added evalScripts test

  • Loading branch information
malsup committed Jan 2, 2007
1 parent 19b21ff commit 9c073265de00b196ddeb298fa01328210ccffd89
Showing with 14 additions and 0 deletions.
  1. +14 −0 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()');
});

0 comments on commit 9c07326

Please sign in to comment.
You can’t perform that action at this time.