aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
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;
}