Skip to content

Commit

Permalink
228ab3d followup 1: fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Dec 5, 2012
1 parent 4437002 commit 8f3ecbe
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 89 deletions.
8 changes: 4 additions & 4 deletions test/data/testinit.js
Expand Up @@ -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");'
}) + '"></script> \
}).replace( /&/g, "&amp;" ) + '"></script> \
blabla';
}

Expand Down Expand Up @@ -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 );
data = jQuery.param( data, false );
}
fragment += "&" + data;
}
Expand Down

0 comments on commit 8f3ecbe

Please sign in to comment.