@@ -498,7 +498,7 @@ define(function (require, exports, module) {
498498
499499 function _copyZippedItemToFS ( path , item ) {
500500 return new Promise ( ( resolve , reject ) => {
501- let destPath = `/test /${ path } ` ;
501+ let destPath = `${ SpecRunnerUtils . getTestPath ( ) } /${ path } ` ;
502502 if ( item . dir ) {
503503 window . fs . mkdirs ( destPath , 0o777 , true , ( err ) => {
504504 if ( err ) {
@@ -525,7 +525,7 @@ define(function (require, exports, module) {
525525
526526 function makeTestDir ( ) {
527527 return new Promise ( ( resolve , reject ) => {
528- let testPath = `/test/` ;
528+ let testPath = SpecRunnerUtils . getTestPath ( ) ;
529529 window . fs . mkdirs ( testPath , 0o777 , true , ( err ) => {
530530 if ( err ) {
531531 reject ( ) ;
@@ -553,16 +553,16 @@ define(function (require, exports, module) {
553553 } else {
554554 JSZip . loadAsync ( data ) . then ( function ( zip ) {
555555 let keys = Object . keys ( zip . files ) ;
556- let destPath = `/test/` ;
557- globalTestRunnerLogToConsole ( "Cleaning test directory: /test/" ) ;
556+ let destPath = SpecRunnerUtils . getTestPath ( ) ;
557+ globalTestRunnerLogToConsole ( "Cleaning test directory: " + destPath ) ;
558558 window . fs . unlink ( destPath , async function ( err ) {
559559 if ( err && err . code !== 'ENOENT' ) {
560560 console . error ( "Could not clean test dir. we will try to move ahead" , err ) ;
561561 // we will now try to overwrite existing
562562 }
563- globalTestRunnerLogToConsole ( "Creating test folder /test/" ) ;
563+ globalTestRunnerLogToConsole ( "Creating test folder " + destPath ) ;
564564 await makeTestDir ( ) ;
565- globalTestRunnerLogToConsole ( "Copying test assets to /test/" ) ;
565+ globalTestRunnerLogToConsole ( "Copying test assets to " + destPath ) ;
566566 let progressMessageEl = document . getElementById ( "loadProgressMessage" ) ;
567567 let lastPrintedPercent = 0 ;
568568 for ( let i = 0 ; i < keys . length ; i ++ ) {
0 commit comments