Skip to content

Commit db906f0

Browse files
committed
Rename script type parameter
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
1 parent dce55ba commit db906f0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/data/mock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ protected function cspClean( $req ) {
218218

219219
protected function errorWithScript( $req ) {
220220
header( 'HTTP/1.0 404 Not Found' );
221-
if ( isset( $req->query['scriptReply'] ) ) {
221+
if ( isset( $req->query['withScriptContentType'] ) ) {
222222
header( 'Content-Type: application/javascript' );
223223
}
224224
if ( isset( $req->query['callback'] ) ) {

test/middleware-mockserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ var mocks = {
228228
resp.end();
229229
},
230230
errorWithScript: function( req, resp ) {
231-
if ( req.query.scriptReply ) {
231+
if ( req.query.withScriptContentType ) {
232232
resp.writeHead( 404, { "Content-Type": "application/javascript" } );
233233
} else {
234234
resp.writeHead( 404 );

test/unit/ajax.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ QUnit.module( "ajax", {
853853
request(
854854
"script reply",
855855
{
856-
url: url( "mock.php?action=errorWithScript&scriptReply" )
856+
url: url( "mock.php?action=errorWithScript&withScriptContentType" )
857857
}
858858
),
859859
request(
@@ -866,7 +866,7 @@ QUnit.module( "ajax", {
866866
"script reply with dataType",
867867
{
868868
dataType: "script",
869-
url: url( "mock.php?action=errorWithScript&scriptReply" )
869+
url: url( "mock.php?action=errorWithScript&withScriptContentType" )
870870
}
871871
),
872872
request(
@@ -880,7 +880,7 @@ QUnit.module( "ajax", {
880880
"script reply with converter",
881881
{
882882
converters: failConverters,
883-
url: url( "mock.php?action=errorWithScript&scriptReply" )
883+
url: url( "mock.php?action=errorWithScript&withScriptContentType" )
884884
}
885885
),
886886
request(
@@ -895,7 +895,7 @@ QUnit.module( "ajax", {
895895
{
896896
converters: failConverters,
897897
dataType: "script",
898-
url: url( "mock.php?action=errorWithScript&scriptReply" )
898+
url: url( "mock.php?action=errorWithScript&withScriptContentType" )
899899
}
900900
),
901901
request(

0 commit comments

Comments
 (0)