mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-18 22:45:50 -06:00
Test case for interface display parts
This commit is contained in:
parent
9bd2fa16aa
commit
bd39fc72c6
22
tests/cases/fourslash/quicklInfoDisplayPartsInterface.ts
Normal file
22
tests/cases/fourslash/quicklInfoDisplayPartsInterface.ts
Normal file
@ -0,0 +1,22 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface /*1*/i {
|
||||
////}
|
||||
////var /*2*/iInstance: /*3*/i;
|
||||
|
||||
goTo.marker('1');
|
||||
verify.verifyQuickInfo("interface", "", { start: test.markerByName("1").position, length: "i".length },
|
||||
[{ text: "interface", kind: "keyword" }, { text: " ", kind: "space" }, { text: "i", kind: "interfaceName" }],
|
||||
[]);
|
||||
|
||||
goTo.marker('2');
|
||||
verify.verifyQuickInfo("var", "", { start: test.markerByName("2").position, length: "iInstance".length },
|
||||
[{ text: "(", kind: "punctuation" }, { text: "var", kind: "text" }, { text: ")", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: "iInstance", kind: "localName" }, { text: ":", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: "i", kind: "interfaceName" }],
|
||||
[]);
|
||||
|
||||
goTo.marker('3');
|
||||
verify.verifyQuickInfo("interface", "", { start: test.markerByName("3").position, length: "i".length },
|
||||
[{ text: "interface", kind: "keyword" }, { text: " ", kind: "space" }, { text: "i", kind: "interfaceName" }],
|
||||
[]);
|
||||
Loading…
x
Reference in New Issue
Block a user