228ab3d followup 1: fix test failures. Close gh-1056.

This commit is contained in:
Richard Gibson
2012-12-05 01:43:16 -05:00
parent 4437002771
commit 20608b3579
2 changed files with 86 additions and 89 deletions

View File

@@ -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';
}
@@ -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;
}