Permalink
Browse files

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

  • Loading branch information...
gibson042 authored and jaubourg committed Dec 5, 2012
1 parent 4008a98 commit c077035b65feeb0703173908aa25ddf98dedee2c
Showing with 86 additions and 89 deletions.
  1. +4 −4 test/data/testinit.js
  2. +82 −85 test/unit/ajax.js
View
@@ -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;
}
Oops, something went wrong.

0 comments on commit c077035

Please sign in to comment.