aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-12-05 14:54:00 +0100
committerjaubourg <j@ubourg.net>2012-12-05 14:54:00 +0100
commit7f7007dffe1a867de5485533d490834ee71c7a4c (patch)
treeb0c9a53d16fc72a81726d6bbc68c1943e37775bc /test/data
parent20608b3579d70d3bac7fd74b4e11e4c08cd9d9b5 (diff)
downloadjquery-7f7007dffe1a867de5485533d490834ee71c7a4c.tar.gz
jquery-7f7007dffe1a867de5485533d490834ee71c7a4c.zip
Revert "228ab3d followup 1: fix test failures. Close gh-1056."
This reverts commit 20608b3579d70d3bac7fd74b4e11e4c08cd9d9b5.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/testinit.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js
index eb107816e..6050eec4c 100644
--- a/test/data/testinit.js
+++ b/test/data/testinit.js
@@ -64,11 +64,11 @@ function createComplexHTML() {
testFoo = "foo"; jQuery("#foo").html("foo"); \
ok( true, "inline script executed" ); \
/* ]]> */</script> \
- <script src="' + service("echo/", {
+ <script src="' + service("echo", {
content: 'var testBar = "bar"; \
jQuery("#ap").html("bar"); \
ok( true, "remote script executed");'
- }).replace( /&/g, "&amp;" ) + '"></script> \
+ }) + '"></script> \
blabla';
}
@@ -158,10 +158,10 @@ function url( value ) {
}
function service( value, data ) {
- var fragment = url( "data/ajax/" + value );
+ var fragment = url( "data/ajax/" + ( value || "" ) );
if ( data ) {
if ( typeof data !== "string" ) {
- data = jQuery.param( data, false );
+ data = jQuery.param( data );
}
fragment += "&" + data;
}