mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
Enable webview tests on remote as well (#102444)
* Enable webview tests on remote as well * Delete conditional test type
This commit is contained in:
@@ -56,21 +56,6 @@ export function disposeAll(disposables: vscode.Disposable[]) {
|
||||
vscode.Disposable.from(...disposables).dispose();
|
||||
}
|
||||
|
||||
export function conditionalTest(name: string, testCallback: (done: MochaDone) => void | Thenable<any>) {
|
||||
if (isTestTypeActive()) {
|
||||
const async = !!testCallback.length;
|
||||
if (async) {
|
||||
test(name, (done) => testCallback(done));
|
||||
} else {
|
||||
test(name, () => (<() => void | Thenable<any>>testCallback)());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isTestTypeActive(): boolean {
|
||||
return !!vscode.extensions.getExtension('vscode-resolver-test');
|
||||
}
|
||||
|
||||
export function delay(ms: number) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user