@@ -531,8 +531,6 @@ const localRwcBaseline = path.join(internalTests, "baselines/rwc/local");
531531const refRwcBaseline = path . join ( internalTests , "baselines/rwc/reference" ) ;
532532
533533const localTest262Baseline = path . join ( internalTests , "baselines/test262/local" ) ;
534- const refTest262Baseline = path . join ( internalTests , "baselines/test262/reference" ) ;
535-
536534
537535gulp . task ( "tests" , "Builds the test infrastructure using the built compiler" , [ run ] ) ;
538536gulp . task ( "tests-debug" , "Builds the test sources and automation in debug mode" , ( ) => {
@@ -811,8 +809,6 @@ gulp.task("diff-rwc", "Diffs the RWC baselines using the diff tool specified by
811809 exec ( getDiffTool ( ) , [ refRwcBaseline , localRwcBaseline ] , done , done ) ;
812810} ) ;
813811
814-
815- const deleteEnding = '.delete' ;
816812gulp . task ( "baseline-accept" , "Makes the most recent test results the new baseline, overwriting the old baseline" , ( ) => {
817813 return baselineAccept ( "" ) ;
818814} ) ;
@@ -827,13 +823,12 @@ function baselineCopy(subfolder = "") {
827823}
828824
829825function baselineDelete ( subfolder = "" ) {
830- return gulp . src ( [ ' tests/baselines/local/**/*.delete' ] )
826+ return gulp . src ( [ " tests/baselines/local/**/*.delete" ] )
831827 . pipe ( insert . transform ( ( content , fileObj ) => {
832- const target = path . join ( refBaseline , fileObj . relative . substr ( 0 , fileObj . relative . length - '.delete' . length ) ) ;
833- console . log ( target ) ;
828+ const target = path . join ( refBaseline , fileObj . relative . substr ( 0 , fileObj . relative . length - ".delete" . length ) ) ;
834829 del . sync ( target ) ;
835830 del . sync ( fileObj . path ) ;
836- return '' ;
831+ return "" ;
837832 } ) ) ;
838833}
839834
0 commit comments