Skip to content

Commit 20608b3

Browse files
committed
228ab3d followup 1: fix test failures. Close jquerygh-1056.
1 parent 4437002 commit 20608b3

File tree

2 files changed

+86
-89
lines changed

2 files changed

+86
-89
lines changed

test/data/testinit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ function createComplexHTML() {
6464
testFoo = "foo"; jQuery("#foo").html("foo"); \
6565
ok( true, "inline script executed" ); \
6666
/* ]]> */</script> \
67-
<script src="' + service("echo", {
67+
<script src="' + service("echo/", {
6868
content: 'var testBar = "bar"; \
6969
jQuery("#ap").html("bar"); \
7070
ok( true, "remote script executed");'
71-
}) + '"></script> \
71+
}).replace( /&/g, "&amp;" ) + '"></script> \
7272
blabla';
7373
}
7474

@@ -158,10 +158,10 @@ function url( value ) {
158158
}
159159

160160
function service( value, data ) {
161-
var fragment = url( "data/ajax/" + ( value || "" ) );
161+
var fragment = url( "data/ajax/" + value );
162162
if ( data ) {
163163
if ( typeof data !== "string" ) {
164-
data = jQuery.param( data );
164+
data = jQuery.param( data, false );
165165
}
166166
fragment += "&" + data;
167167
}

0 commit comments

Comments
 (0)