core: tests cleanup for compability with qunit updates: stop() now actually accepts an argument (ajax.js); selectors should be confined to fixture(event.js)

This commit is contained in:
Jörn Zaefferer 2008-10-24 14:40:58 +00:00
parent 30751dd9f1
commit 12bb969411
2 changed files with 5 additions and 5 deletions

View file

@ -240,7 +240,7 @@ test("synchronous request with callbacks", function() {
test("pass-through request object", function() { test("pass-through request object", function() {
expect(8); expect(8);
stop(true); stop();
var target = "data/name.html"; var target = "data/name.html";
var successCount = 0; var successCount = 0;
@ -321,13 +321,13 @@ test("global ajaxSettings", function() {
test("load(String)", function() { test("load(String)", function() {
expect(1); expect(1);
stop(true); // check if load can be called with only url stop(); // check if load can be called with only url
jQuery('#first').load("data/name.html", start); jQuery('#first').load("data/name.html", start);
}); });
test("load('url selector')", function() { test("load('url selector')", function() {
expect(1); expect(1);
stop(true); // check if load can be called with only url stop(); // check if load can be called with only url
jQuery('#first').load("data/test3.html div.user", function(){ jQuery('#first').load("data/test3.html div.user", function(){
equals( jQuery(this).children("div").length, 2, "Verify that specific elements were injected" ); equals( jQuery(this).children("div").length, 2, "Verify that specific elements were injected" );
start(); start();
@ -435,7 +435,7 @@ test("jQuery.getScript(String, Function) - with callback", function() {
test("jQuery.getScript(String, Function) - no callback", function() { test("jQuery.getScript(String, Function) - no callback", function() {
expect(1); expect(1);
stop(true); stop();
jQuery.getScript(url("data/test.js"), start); jQuery.getScript(url("data/test.js"), start);
}); });

View file

@ -258,7 +258,7 @@ test("trigger(event, [data], [fn])", function() {
var pass = true; var pass = true;
try { try {
jQuery('input:first') jQuery('#form input:first')
.hide() .hide()
.trigger('focus'); .trigger('focus');
} catch(e) { } catch(e) {