Commit 7f7007df authored by jaubourg's avatar jaubourg

Revert "228ab3dd followup 1: fix test failures. Close gh-1056."

This reverts commit 20608b35.
parent 20608b35
......@@ -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;
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment