File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44pushd %~dp0 \..
55
6- set VSCODEUSERDATADIR = %TMP % \vscodeuserfolder-%RANDOM% -%TIME:~6 ,2 %
6+ set VSCODEUSERDATADIR = %TEMP % \vscodeuserfolder-%RANDOM% -%TIME:~6 ,2 %
77
88:: Figure out which Electron to use for running tests
99if " %INTEGRATION_TEST_ELECTRON_PATH% " == " " (
@@ -50,10 +50,10 @@ if %errorlevel% neq 0 exit /b %errorlevel%
5050call " %INTEGRATION_TEST_ELECTRON_PATH% " $%~dp0 \..\extensions\emmet\test-fixtures --extensionDevelopmentPath=%~dp0 \..\extensions\emmet --extensionTestsPath=%~dp0 \..\extensions\emmet\out\test --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --user-data-dir=%VSCODEUSERDATADIR% .
5151if %errorlevel% neq 0 exit /b %errorlevel%
5252
53- REM set GITWORKSPACE=%TMP %\git-%RANDOM%
54- REM mkdir %GITWORKSPACE%
55- REM call "%INTEGRATION_TEST_ELECTRON_PATH%" %GITWORKSPACE% --extensionDevelopmentPath=%~dp0\..\extensions\git --extensionTestsPath=%~dp0\..\extensions\git\out\test --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --user-data-dir=%VSCODEUSERDATADIR%
56- REM if %errorlevel% neq 0 exit /b %errorlevel%
53+ set GITWORKSPACE = %TEMP % \git-%RANDOM%
54+ mkdir %GITWORKSPACE%
55+ call " %INTEGRATION_TEST_ELECTRON_PATH% " %GITWORKSPACE% --extensionDevelopmentPath=%~dp0 \..\extensions\git --extensionTestsPath=%~dp0 \..\extensions\git\out\test --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --user-data-dir=%VSCODEUSERDATADIR%
56+ if %errorlevel% neq 0 exit /b %errorlevel%
5757
5858:: Tests in commonJS (HTML, CSS, JSON language server tests...)
5959call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\*\server\out\test\**\*.test.js
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ export class DeferredPromise<T> {
5151
5252export function toResource ( this : any , path : string ) {
5353 if ( isWindows ) {
54- return URI . file ( join ( 'C:\\' , Buffer . from ( this . test . fullTitle ( ) ) . toString ( 'base64' ) , path ) ) ;
54+ return URI . file ( join ( 'C:\\' , btoa ( this . test . fullTitle ( ) ) , path ) ) ;
5555 }
5656
57- return URI . file ( join ( '/' , Buffer . from ( this . test . fullTitle ( ) ) . toString ( 'base64' ) , path ) ) ;
57+ return URI . file ( join ( '/' , btoa ( this . test . fullTitle ( ) ) , path ) ) ;
5858}
5959
6060export function suiteRepeat ( n : number , description : string , callback : ( this : any ) => void ) : void {
You can’t perform that action at this time.
0 commit comments