Commit 20608b35 authored by Richard Gibson's avatar Richard Gibson

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

parent 44370027
...@@ -64,11 +64,11 @@ function createComplexHTML() { ...@@ -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';
} }
...@@ -158,10 +158,10 @@ function url( value ) { ...@@ -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;
} }
......
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