Skip to content

Commit 053be42

Browse files
Add tests.
1 parent 958a423 commit 053be42

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

src/harness/runner.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ if (testConfigFile !== '') {
4949
if (!option) {
5050
continue;
5151
}
52-
ts.sys.write("Option: " + option + "\r\n");
5352
switch (option) {
5453
case 'compiler':
5554
runners.push(new CompilerBaselineRunner(CompilerTestType.Conformance));
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
////module M {
4+
////}
5+
////module N {
6+
////}
7+
8+
var c = classification;
9+
cancellation.setCancelled(1);
10+
verifyOperationIsCancelled(() => verify.semanticClassificationsAre());
11+
cancellation.resetCancelled();
12+
13+
verify.semanticClassificationsAre(
14+
c.moduleName("M"),
15+
c.moduleName("N"));
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
////module M {
4+
////}
5+
////module N {
6+
////}
7+
8+
var c = classification;
9+
cancellation.setCancelled(1);
10+
verifyOperationIsCancelled(() => verify.syntacticClassificationsAre());
11+
cancellation.resetCancelled();
12+
13+
verify.syntacticClassificationsAre(
14+
c.keyword("module"),
15+
c.moduleName("M"),
16+
c.punctuation("{"),
17+
c.punctuation("}"),
18+
c.keyword("module"),
19+
c.moduleName("N"),
20+
c.punctuation("{"),
21+
c.punctuation("}"));

0 commit comments

Comments
 (0)