mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Add tests.
This commit is contained in:
@@ -49,7 +49,6 @@ if (testConfigFile !== '') {
|
||||
if (!option) {
|
||||
continue;
|
||||
}
|
||||
ts.sys.write("Option: " + option + "\r\n");
|
||||
switch (option) {
|
||||
case 'compiler':
|
||||
runners.push(new CompilerBaselineRunner(CompilerTestType.Conformance));
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////module M {
|
||||
////}
|
||||
////module N {
|
||||
////}
|
||||
|
||||
var c = classification;
|
||||
cancellation.setCancelled(1);
|
||||
verifyOperationIsCancelled(() => verify.semanticClassificationsAre());
|
||||
cancellation.resetCancelled();
|
||||
|
||||
verify.semanticClassificationsAre(
|
||||
c.moduleName("M"),
|
||||
c.moduleName("N"));
|
||||
@@ -0,0 +1,21 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////module M {
|
||||
////}
|
||||
////module N {
|
||||
////}
|
||||
|
||||
var c = classification;
|
||||
cancellation.setCancelled(1);
|
||||
verifyOperationIsCancelled(() => verify.syntacticClassificationsAre());
|
||||
cancellation.resetCancelled();
|
||||
|
||||
verify.syntacticClassificationsAre(
|
||||
c.keyword("module"),
|
||||
c.moduleName("M"),
|
||||
c.punctuation("{"),
|
||||
c.punctuation("}"),
|
||||
c.keyword("module"),
|
||||
c.moduleName("N"),
|
||||
c.punctuation("{"),
|
||||
c.punctuation("}"));
|
||||
Reference in New Issue
Block a user