mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
added evalScripts test
This commit is contained in:
parent
19b21ff10a
commit
9c073265de
@ -362,3 +362,17 @@ test("ajaxSetup()", function() {
|
|||||||
});
|
});
|
||||||
$.ajax();
|
$.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()');
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user