From e0b1bb8e3d66db4166ac7ee2146903bae7ab1eb9 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Mon, 31 Jan 2011 19:14:06 +0100 Subject: Script dataType now supports ecmascript mimetypes. --- test/data/script.php | 6 +++++- test/unit/ajax.js | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/data/script.php b/test/data/script.php index 55d7bc209..fb7110491 100644 --- a/test/data/script.php +++ b/test/data/script.php @@ -1,7 +1,11 @@ ok( true, "Script executed correctly." ); diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 31b319c37..33f278274 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1558,17 +1558,23 @@ test("jQuery.ajax() - malformed JSON", function() { }); test("jQuery.ajax() - script by content-type", function() { - expect(1); + expect(2); stop(); - jQuery.ajax({ - url: "data/script.php", - data: { header: "script" }, - success: function() { - start(); - } - }); + jQuery.when( + + jQuery.ajax({ + url: "data/script.php", + data: { header: "script" } + }), + + jQuery.ajax({ + url: "data/script.php", + data: { header: "ecma" } + }) + + ).then( start, start ); }); test("jQuery.ajax() - json by content-type", function() { -- cgit v1.2.3