aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-11-11 18:55:44 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-11-11 18:55:44 +0300
commitad358fd62b0ab548abe379594ea00441940461f6 (patch)
tree50a8023fcf9817f0e3817229727818bab87155e6 /test/unit/ajax.js
parent8dda094c7caaef7cf1de3acd3e39a3b6dbc7a7ad (diff)
downloadjquery-ad358fd62b0ab548abe379594ea00441940461f6.tar.gz
jquery-ad358fd62b0ab548abe379594ea00441940461f6.zip
Revert "Ajax: Mitigate possible XSS vulnerability"
This reverts commit b078a62013782c7424a4a61a240c23c4c0b42614.
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 4eb70cad8..8e7cc06f4 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -71,54 +71,6 @@ QUnit.module( "ajax", {
};
} );
- ajaxTest( "jQuery.ajax() - do not execute js (crossOrigin)", 2, function( assert ) {
- return {
- create: function( options ) {
- options.crossDomain = true;
- return jQuery.ajax( url( "data/script.php?header=ecma" ), options );
- },
- success: function() {
- assert.ok( true, "success" );
- },
- complete: function() {
- assert.ok( true, "complete" );
- }
- };
- } );
-
- ajaxTest( "jQuery.ajax() - execute js for crossOrigin when dataType option is provided", 3,
- function( assert ) {
- return {
- create: function( options ) {
- options.crossDomain = true;
- options.dataType = "script";
- return jQuery.ajax( url( "data/script.php?header=ecma" ), options );
- },
- success: function() {
- assert.ok( true, "success" );
- },
- complete: function() {
- assert.ok( true, "complete" );
- }
- };
- }
- );
-
- ajaxTest( "jQuery.ajax() - do not execute js (crossOrigin)", 2, function( assert ) {
- return {
- create: function( options ) {
- options.crossDomain = true;
- return jQuery.ajax( url( "data/script.php" ), options );
- },
- success: function() {
- assert.ok( true, "success" );
- },
- complete: function() {
- assert.ok( true, "complete" );
- }
- };
- } );
-
ajaxTest( "jQuery.ajax() - success callbacks (late binding)", 8, function( assert ) {
return {
setup: addGlobalEvents( "ajaxStart ajaxStop ajaxSend ajaxComplete ajaxSuccess", assert ),