@@ -19,18 +19,6 @@ QUnit.test("added to namespace (#99)", function(){
19
19
QUnit . equal ( namespace . ajax , ajax ) ;
20
20
} ) ;
21
21
22
- QUnit . asyncTest ( "cross domain post request should change data to form data (#90)" , function ( ) {
23
- ajax ( {
24
- type : "POST" ,
25
- url : "http://httpbin.org/post" ,
26
- data : { 'message' : 'VALUE' } ,
27
- dataType : 'application/json'
28
- } ) . then ( function ( resp ) {
29
- QUnit . equal ( resp . form . message , "VALUE" ) ;
30
- start ( ) ;
31
- } ) ;
32
- } ) ;
33
-
34
22
QUnit . asyncTest ( "GET requests with dataType parse JSON (#106)" , function ( ) {
35
23
ajax ( {
36
24
type : "get" ,
@@ -94,8 +82,22 @@ QUnit.asyncTest("ignores case of type parameter for a post request (#100)", func
94
82
} ) ;
95
83
} ) ;
96
84
97
- if ( "abort" in XMLHttpRequest . prototype || ( XMLHttpRequest . _XHR && "abort" in XMLHttpRequest . prototype ) ) {
85
+ if ( typeof XDomainRequest === 'undefined' ) {
86
+ QUnit . asyncTest ( "cross domain post request should change data to form data (#90)" , function ( ) {
87
+ ajax ( {
88
+ type : "POST" ,
89
+ url : "http://httpbin.org/post" ,
90
+ data : { 'message' : 'VALUE' } ,
91
+ dataType : 'application/json'
92
+ } ) . then ( function ( resp ) {
93
+ QUnit . equal ( resp . form . message , "VALUE" ) ;
94
+ start ( ) ;
95
+ } ) ;
96
+ } ) ;
97
+ }
98
98
99
+ if ( System . env !== 'canjs-test' ) {
100
+ // Brittle in IE 9
99
101
QUnit . asyncTest ( "abort" , function ( ) {
100
102
var promise = ajax ( {
101
103
type : "get" ,
0 commit comments