it(`verifies that 'Go To Definition' works`, async function () { await common.openFirstMatchFile('app.js'); await js.goToExpressDefinition(); await app.wait(); assert.ok(await common.getTab('index.d.ts'), 'Tab opened when navigating to definition is not as expected.'); });
.catch((err: HTTPError) => { ok(err instanceof HTTPError); equal(err.statusCode, 404); });
.catch((err: RequestError) => { ok(err instanceof RequestError); equal(err.code, "ENOTFOUND"); });
let b = commands.executeCommand('vscode.diff', Uri.parse('sc:a'), Uri.parse('sc:b')).then(value => { assert.ok(value === void 0); registration.dispose(); });
function assertTextAreaState(actual: TextAreaState, value: string, selectionStart: number, selectionEnd: number): void { let desired = new TextAreaState(value, selectionStart, selectionEnd, null, null); assert.ok(equalsTextAreaState(desired, actual), desired.toString() + ' == ' + actual.toString()); }
test('#7013 - input without options', function () { const source = new CancellationTokenSource(); let p = window.showInputBox(undefined, source.token); assert.ok(typeof p === 'object'); source.dispose(); });
let d = commands.executeCommand('vscode.diff', 1, 2, 3).then(() => assert.ok(false), () => assert.ok(true));
var reprintedLines = reprinter(function() { assert.ok(false, "should not have called print function"); });
$trySaveDocument(uri: URI) { assert.ok(!saved); saved = uri; return Promise.resolve(true); }
let noTokens = (lineStream) => { assert.equal(lineStream.pos(), 0); assert.ok(lineStream.eos()); };