aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-09-22 09:35:57 +0200
committerjaubourg <j@ubourg.net>2011-09-22 09:35:57 +0200
commit6eb75676c4d21550daa755c3dfc3539b1c530556 (patch)
treeb87a162e181da8623469a4c7cd8a99df884df869
parentd638aa9c6d6394db0c06431560b3d8b83cacc61c (diff)
downloadjquery-6eb75676c4d21550daa755c3dfc3539b1c530556.tar.gz
jquery-6eb75676c4d21550daa755c3dfc3539b1c530556.zip
Fixes a weird IE7 bug in the unit tests. If anybody can shed some light on this one, I'm a taker.
-rw-r--r--test/unit/ajax.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index f871da723..ea0478995 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -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();
+ } );
});