]> source.dussan.org Git - jquery.git/commitdiff
core: tests cleanup for compability with qunit updates: stop() now actually accepts...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 24 Oct 2008 14:40:58 +0000 (14:40 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 24 Oct 2008 14:40:58 +0000 (14:40 +0000)
test/unit/ajax.js
test/unit/event.js

index 62c5ece2d21572d021a9c6b03e7dcca98865c6b0..677838b54bc17a719652d2c0882aced8680e4906 100644 (file)
@@ -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);
 });
 
index 44109f0e0b30279981bb9e30c0454027e63c495f..a0857a347a30b0a3dbc5435eb14bd657d40b9708 100644 (file)
@@ -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) {