1- /* global chai */
1+ /* global chai, scriptCount */
22
33'use strict' ;
44
@@ -39,7 +39,7 @@ describe('form', function() {
3939
4040 it ( '"action" and "method" form attributes' , function ( ) {
4141 var f = $ ( '#form1' ) ;
42- assert . strictEqual ( f . attr ( 'action' ) , 'text.php ' , 'form "action"' ) ;
42+ assert . strictEqual ( f . attr ( 'action' ) , 'ajax/ text.html ' , 'form "action"' ) ;
4343 assert . strictEqual ( f . attr ( 'method' ) , 'get' , 'form "method"' ) ;
4444 } ) ;
4545
@@ -212,7 +212,6 @@ describe('form', function() {
212212 assert . ok ( ! el . checked , 'success: ' + el . checked ) ;
213213 } ) ;
214214
215-
216215 // test clearForm
217216 it ( 'clearForm (radio)' , function ( ) {
218217 var el = $ ( '#form1 input:radio:checked' ) [ 0 ] ;
@@ -283,7 +282,7 @@ describe('form', function() {
283282
284283 var opts = {
285284 target : '#targetDiv' ,
286- url : 'doc-with-scripts.html?' + new Date ( ) . getTime ( ) ,
285+ url : 'ajax/ doc-with-scripts.html?' + new Date ( ) . getTime ( ) ,
287286 success : function ( responseText ) { // post-callback
288287 assert . ok ( true , 'success-callback' ) ;
289288 assert . ok ( $ ( '#targetDiv' ) . text ( ) . match ( 'Lorem ipsum' ) , 'targetDiv updated' ) ;
@@ -367,7 +366,7 @@ describe('form', function() {
367366 // stop();
368367
369368 var opts = {
370- url : 'json.json' ,
369+ url : 'ajax/ json.json' ,
371370 dataType : 'json' ,
372371 success : function ( data , statusText ) { // post-submit callback
373372 // assert that the json data was evaluated
@@ -387,7 +386,7 @@ describe('form', function() {
387386 // stop();
388387
389388 var opts = {
390- url : 'script.txt?' + new Date ( ) . getTime ( ) , // don't let ie cache it
389+ url : 'ajax/ script.txt?' + new Date ( ) . getTime ( ) , // don't let ie cache it
391390 dataType : 'script' ,
392391 success : function ( responseText , statusText ) { // post-submit callback
393392 assert . ok ( typeof formScriptTest == 'function' , 'script evaluated' ) ;
@@ -405,7 +404,7 @@ describe('form', function() {
405404 // stop();
406405
407406 var opts = {
408- url : 'test.xml' ,
407+ url : 'ajax/ test.xml' ,
409408 dataType : 'xml' ,
410409 success : function ( responseXML , statusText ) { // post-submit callback
411410 assert . ok ( typeof responseXML == 'object' , 'data type xml' ) ;
@@ -471,7 +470,7 @@ describe('form', function() {
471470 } ,
472471 // url and method must be provided for a pseudo form since they can
473472 // not be extracted from the markup
474- url : 'text.php ' ,
473+ url : 'ajax/ text.html ' ,
475474 type : 'post'
476475 } ;
477476
@@ -490,7 +489,7 @@ describe('form', function() {
490489 assert . ok ( data . name == 'jquery-test' , 'evaled response' ) ;
491490 // start();
492491 } ,
493- url : 'json.txt'
492+ url : 'ajax/ json.txt'
494493 } ;
495494
496495 // expect(2);
@@ -617,7 +616,7 @@ describe('form', function() {
617616 // stop();
618617
619618 var opts = {
620- url : 'bogus.php ' ,
619+ url : 'ajax/404.html ' ,
621620 error : function ( ) {
622621 assert . ok ( true , 'error-callback' ) ;
623622 // start();
0 commit comments