Skip to content

Commit 500cdcc

Browse files
committed
Add navigationBar test
1 parent c6d712d commit 500cdcc

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"eslint.options": {
99
"rulePaths": ["./scripts/eslint/built/rules/"],
1010
"ext": [".ts"]
11-
}
11+
},
12+
"typescript.tsdk": "built/local"
1213
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/// <reference path="fourslash.ts"/>
2+
3+
////function f() {}
4+
////f[Symbol.iterator] = function() {}
5+
6+
verify.navigationTree({
7+
"text": "<global>",
8+
"kind": "script",
9+
"childItems": [
10+
{
11+
"text": "f",
12+
"kind": "class",
13+
"childItems": [
14+
{
15+
"text": "constructor",
16+
"kind": "constructor"
17+
},
18+
{
19+
"text": "[Symbol.iterator]",
20+
"kind": "function"
21+
}
22+
]
23+
}
24+
]
25+
});
26+
27+
verify.navigationBar([
28+
{
29+
"text": "<global>",
30+
"kind": "script",
31+
"childItems": [
32+
{
33+
"text": "f",
34+
"kind": "class"
35+
}
36+
]
37+
},
38+
{
39+
"text": "f",
40+
"kind": "class",
41+
"childItems": [
42+
{
43+
"text": "constructor",
44+
"kind": "constructor"
45+
},
46+
{
47+
"text": "[Symbol.iterator]",
48+
"kind": "function"
49+
}
50+
],
51+
"indent": 1
52+
}
53+
]);

0 commit comments

Comments
 (0)