Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

228ab3d followup 1: fix test failures #1056

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/data/testinit.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ function createComplexHTML() {
testFoo = "foo"; jQuery("#foo").html("foo"); \ testFoo = "foo"; jQuery("#foo").html("foo"); \
ok( true, "inline script executed" ); \ ok( true, "inline script executed" ); \
/* ]]> */</script> \ /* ]]> */</script> \
<script src="' + service("echo", { <script src="' + service("echo/", {
content: 'var testBar = "bar"; \ content: 'var testBar = "bar"; \
jQuery("#ap").html("bar"); \ jQuery("#ap").html("bar"); \
ok( true, "remote script executed");' ok( true, "remote script executed");'
}) + '"></script> \ }).replace( /&/g, "&amp;" ) + '"></script> \
blabla'; blabla';
} }


Expand Down Expand Up @@ -158,10 +158,10 @@ function url( value ) {
} }


function service( value, data ) { function service( value, data ) {
var fragment = url( "data/ajax/" + ( value || "" ) ); var fragment = url( "data/ajax/" + value );
if ( data ) { if ( data ) {
if ( typeof data !== "string" ) { if ( typeof data !== "string" ) {
data = jQuery.param( data ); data = jQuery.param( data, false );
} }
fragment += "&" + data; fragment += "&" + data;
} }
Expand Down
Loading