示例#1
0
		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.');
		});
示例#2
0
 .catch((err: HTTPError) => {
   ok(err instanceof HTTPError);
   equal(err.statusCode, 404);
 });
示例#3
0
 .catch((err: RequestError) => {
   ok(err instanceof RequestError);
   equal(err.code, "ENOTFOUND");
 });
示例#4
0
		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());
	}
示例#6
0
	test('#7013 - input without options', function () {
		const source = new CancellationTokenSource();
		let p = window.showInputBox(undefined, source.token);
		assert.ok(typeof p === 'object');
		source.dispose();
	});
示例#7
0
		let d = commands.executeCommand('vscode.diff', 1, 2, 3).then(() => assert.ok(false), () => assert.ok(true));
示例#8
0
文件: patcher.ts 项目: benjamn/recast
 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);
			}
示例#10
0
		let noTokens = (lineStream) => {
			assert.equal(lineStream.pos(), 0);
			assert.ok(lineStream.eos());
		};