mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Add test to show evalScripts/find problem.
This commit is contained in:
parent
ac78ad07c2
commit
41f62e1364
14
src/jquery/coreTest.js
vendored
14
src/jquery/coreTest.js
vendored
@ -426,3 +426,17 @@ test("removeClass(String) - add three classes and remove again", function() {
|
|||||||
test("removeAttr(String", function() {
|
test("removeAttr(String", function() {
|
||||||
ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );
|
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();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user