mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: align mock.php spacing with 3.x-stable branch
Closes gh-5538
This commit is contained in:
parent
dbc9dac7ae
commit
d5ae14f6fe
@ -95,9 +95,9 @@ QUnit.assert.ok( true, "mock executed");';
|
||||
}
|
||||
|
||||
if ( isset( $req->query['array'] ) ) {
|
||||
echo '[{"name":"John","age":21},{"name":"Peter","age":25}]';
|
||||
echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
|
||||
} else {
|
||||
echo '{"data":{"lang":"en","length":25}}';
|
||||
echo '{ "data": {"lang": "en", "length": 25} }';
|
||||
}
|
||||
}
|
||||
|
||||
@ -112,8 +112,8 @@ QUnit.assert.ok( true, "mock executed");';
|
||||
$callback = $_POST['callback'];
|
||||
}
|
||||
$json = isset( $req->query['array'] ) ?
|
||||
'[{"name":"John","age":21},{"name":"Peter","age":25}]' :
|
||||
'{"data":{"lang":"en","length":25}}';
|
||||
'[ { "name": "John", "age": 21 }, { "name": "Peter", "age": 25 } ]' :
|
||||
'{ "data": { "lang": "en", "length": 25 } }';
|
||||
echo cleanCallback( $callback ) . '(' . $json . ')';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user