Skip to content
Permalink
Browse files

Add test to show evalScripts/find problem.

  • Loading branch information
malsup committed Jan 1, 2007
1 parent ac78ad0 commit 41f62e13643462a88fa7d9015346196f3d37b966
Showing with 14 additions and 0 deletions.
  1. +14 −0 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();
}
});
});

0 comments on commit 41f62e1

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