Skip to content
Permalink
Browse files

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

This reverts commit 20608b3.
  • Loading branch information
jaubourg committed Dec 5, 2012
1 parent 20608b3 commit 7f7007dffe1a867de5485533d490834ee71c7a4c
Showing with 89 additions and 86 deletions.
  1. +4 −4 test/data/testinit.js
  2. +85 −82 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");'
}).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;
}

0 comments on commit 7f7007d

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