From 12bb969411716dcad3237f3403e83744add3f84c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 24 Oct 2008 14:40:58 +0000 Subject: [PATCH] core: tests cleanup for compability with qunit updates: stop() now actually accepts an argument (ajax.js); selectors should be confined to fixture(event.js) --- test/unit/ajax.js | 8 ++++---- test/unit/event.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 62c5ece2d..677838b54 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -240,7 +240,7 @@ test("synchronous request with callbacks", function() { test("pass-through request object", function() { expect(8); - stop(true); + stop(); var target = "data/name.html"; var successCount = 0; @@ -321,13 +321,13 @@ test("global ajaxSettings", function() { test("load(String)", function() { 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); }); test("load('url selector')", function() { 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(){ equals( jQuery(this).children("div").length, 2, "Verify that specific elements were injected" ); start(); @@ -435,7 +435,7 @@ test("jQuery.getScript(String, Function) - with callback", function() { test("jQuery.getScript(String, Function) - no callback", function() { expect(1); - stop(true); + stop(); jQuery.getScript(url("data/test.js"), start); }); diff --git a/test/unit/event.js b/test/unit/event.js index 44109f0e0..a0857a347 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -258,7 +258,7 @@ test("trigger(event, [data], [fn])", function() { var pass = true; try { - jQuery('input:first') + jQuery('#form input:first') .hide() .trigger('focus'); } catch(e) { -- 2.39.5