Skip to content
Permalink
Browse files

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

  • Loading branch information
gibson042 committed Dec 5, 2012
1 parent 4437002 commit 20608b3579d70d3bac7fd74b4e11e4c08cd9d9b5
Showing with 86 additions and 89 deletions.
  1. +4 −4 test/data/testinit.js
  2. +82 −85 test/unit/ajax.js
@@ -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;
}

0 comments on commit 20608b3

Please sign in to comment.
You can’t perform that action at this time.