File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131// this will work in the browser via browserify
3232var _chai : typeof chai = require ( "chai" ) ;
3333var assert : typeof _chai . assert = _chai . assert ;
34- var expect : typeof _chai . expect = _chai . expect ;
3534declare var __dirname : string ; // Node-specific
3635var global = < any > Function ( "return this" ) . call ( null ) ;
3736/* tslint:enable:no-var-keyword */
@@ -513,7 +512,6 @@ namespace Harness {
513512 }
514513
515514 const folder : any = fso . GetFolder ( path ) ;
516- const paths : string [ ] = [ ] ;
517515
518516 return filesInFolder ( folder , path ) ;
519517 } ;
@@ -627,18 +625,6 @@ namespace Harness {
627625 }
628626
629627 /// Ask the server to use node's path.resolve to resolve the given path
630- function getResolvedPathFromServer ( path : string ) {
631- const xhr = new XMLHttpRequest ( ) ;
632- try {
633- xhr . open ( "GET" , path + "?resolve" , /*async*/ false ) ;
634- xhr . send ( ) ;
635- }
636- catch ( e ) {
637- return { status : 404 , responseText : null } ;
638- }
639-
640- return waitForXHR ( xhr ) ;
641- }
642628
643629 export interface XHRResponse {
644630 status : number ;
You can’t perform that action at this time.
0 commit comments