]> source.dussan.org Git - jquery.git/commitdiff
Fixes a weird IE7 bug in the unit tests. If anybody can shed some light on this one...
authorjaubourg <j@ubourg.net>
Thu, 22 Sep 2011 07:35:57 +0000 (09:35 +0200)
committerjaubourg <j@ubourg.net>
Thu, 22 Sep 2011 07:35:57 +0000 (09:35 +0200)
test/unit/ajax.js

index f871da723e06204a27de135aa5bd08bc56bebfc2..ea047899548c9b6ce5c4444747141f3f3e98b470 100644 (file)
@@ -1760,7 +1760,12 @@ test("jQuery.post - data", 3, function() {
                                strictEqual( data, "test%5Blength%5D=7&test%5Bfoo%5D=bar", "Check if a sub-object with a length param is serialized correctly");
                        }
                })
-       ).then( start, start );
+       // The more compact then( start, start ) doesn't work in IE7
+       ).then( function() {
+               start();
+       }, function() {
+               start();
+       } );
 
 });