mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Add tests
This commit is contained in:
parent
955c9f1ff2
commit
0258a648f9
14
tests/cases/fourslash/getOccurrencesOfDecorators.ts
Normal file
14
tests/cases/fourslash/getOccurrencesOfDecorators.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: b.ts
|
||||
////@/*1*/decorator
|
||||
////class C {
|
||||
//// @decorator
|
||||
//// method() {}
|
||||
////}
|
||||
////function decorator(target) {
|
||||
//// return target;
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.occurrencesAtPositionCount(3);
|
||||
11
tests/cases/fourslash/quickInfoForDecorators.ts
Normal file
11
tests/cases/fourslash/quickInfoForDecorators.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////@/*1*/decorator
|
||||
////class C {
|
||||
|
||||
////}
|
||||
/////** decorator documentation*/
|
||||
////var decorator = t=> t;
|
||||
|
||||
goTo.marker("1");
|
||||
verify.quickInfoIs("var decorator: (t: any) => any", "decorator documentation");
|
||||
Loading…
x
Reference in New Issue
Block a user