Skip to content

Commit 8489e52

Browse files
committed
Modify fourslash tests
1 parent eecf7ba commit 8489e52

16 files changed

+250
-250
lines changed

Diff for: tests/cases/fourslash/addMemberToInterface.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path="fourslash.ts" />
22

33
////
4-
//// module /*check*/Mod{
4+
//// namespace /*check*/Mod{
55
//// }
66
////
77
//// interface MyInterface {
@@ -11,10 +11,10 @@
1111
edit.disableFormatting();
1212

1313
goTo.marker('check');
14-
verify.quickInfoIs('module Mod');
14+
verify.quickInfoIs('namespace Mod');
1515

1616
goTo.marker('insert');
1717
edit.insert("x: number;\n");
1818

1919
goTo.marker('check');
20-
verify.quickInfoIs('module Mod');
20+
verify.quickInfoIs('namespace Mod');

Diff for: tests/cases/fourslash/augmentedTypesClass3.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/// <reference path='fourslash.ts'/>
22

33
////class c/*1*/5b { public foo() { } }
4-
////module c/*2*/5b { export var y = 2; } // should be ok
4+
////namespace c/*2*/5b { export var y = 2; } // should be ok
55
/////*3*/
66

77
goTo.marker('1');
8-
verify.quickInfoIs("class c5b\nmodule c5b");
8+
verify.quickInfoIs("class c5b\nnamespace c5b");
99

1010
goTo.marker('2');
11-
verify.quickInfoIs("class c5b\nmodule c5b");
11+
verify.quickInfoIs("class c5b\nnamespace c5b");
1212

1313
goTo.marker('3');
14-
verify.completionListContains("c5b", "class c5b\nmodule c5b");
14+
verify.completionListContains("c5b", "class c5b\nnamespace c5b");

Diff for: tests/cases/fourslash/augmentedTypesModule2.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/// <reference path='fourslash.ts'/>
22

33
////function /*11*/m2f(x: number) { };
4-
////module m2f { export interface I { foo(): void } }
4+
////namespace m2f { export interface I { foo(): void } }
55
////var x: m2f./*1*/
66
////var /*2*/r = m2f/*3*/;
77

88
goTo.marker('11');
9-
verify.quickInfoIs('function m2f(x: number): void\nmodule m2f');
9+
verify.quickInfoIs('function m2f(x: number): void\nnamespace m2f');
1010

1111
goTo.marker('1');
1212
verify.completionListContains('I');

Diff for: tests/cases/fourslash/commentsExternalModules.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/// <reference path='fourslash.ts' />
22

33
// @Filename: commentsExternalModules_file0.ts
4-
/////** Module comment*/
5-
////export module m/*1*/1 {
4+
/////** Namespace comment*/
5+
////export namespace m/*1*/1 {
66
//// /** b's comment*/
77
//// export var b: number;
88
//// /** foo's comment*/
99
//// function foo() {
1010
//// return /*2*/b;
1111
//// }
1212
//// /** m2 comments*/
13-
//// export module m2 {
13+
//// export namespace m2 {
1414
//// /** class comment;*/
1515
//// export class c {
1616
//// };
@@ -36,7 +36,7 @@ edit.insert('');
3636

3737
goTo.file("commentsExternalModules_file0.ts");
3838
goTo.marker('1');
39-
verify.quickInfoIs("module m1", "Module comment");
39+
verify.quickInfoIs("namespace m1", "Namespace comment");
4040

4141
goTo.marker('2');
4242
verify.completionListContains("b", "var m1.b: number", "b's comment");
@@ -48,12 +48,12 @@ goTo.marker('3q');
4848
verify.quickInfoIs("function foo(): number", "foo's comment");
4949

5050
goTo.marker('4');
51-
verify.completionListContains("m1", "module m1", "Module comment");
51+
verify.completionListContains("m1", "namespace m1", "Namespace comment");
5252

5353
goTo.marker('5');
5454
verify.memberListContains("b", "var m1.b: number", "b's comment");
5555
verify.memberListContains("fooExport", "function m1.fooExport(): number", "exported function");
56-
verify.memberListContains("m2", "module m1.m2");
56+
verify.memberListContains("m2", "namespace m1.m2");
5757

5858
goTo.marker('6');
5959
verify.currentSignatureHelpDocCommentIs("exported function");
@@ -75,12 +75,12 @@ goTo.marker('10');
7575
verify.completionListContains("extMod", 'import extMod = require("commentsExternalModules_file0")', "This is on import declaration");
7676

7777
goTo.marker('11');
78-
verify.memberListContains("m1", "module extMod.m1");
78+
verify.memberListContains("m1", "namespace extMod.m1");
7979

8080
goTo.marker('12');
8181
verify.memberListContains("b", "var extMod.m1.b: number", "b's comment");
8282
verify.memberListContains("fooExport", "function extMod.m1.fooExport(): number", "exported function");
83-
verify.memberListContains("m2", "module extMod.m1.m2");
83+
verify.memberListContains("m2", "namespace extMod.m1.m2");
8484

8585
goTo.marker('13');
8686
verify.currentSignatureHelpDocCommentIs("exported function");

Diff for: tests/cases/fourslash/commentsImportDeclaration.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/// <reference path='fourslash.ts' />
22

33
// @Filename: commentsImportDeclaration_file0.ts
4-
/////** ModuleComment*/
5-
////export module m/*2*/1 {
4+
/////** NamespaceComment*/
5+
////export namespace m/*2*/1 {
66
//// /** b's comment*/
77
//// export var b: number;
88
//// /** m2 comments*/
9-
//// export module m2 {
9+
//// export namespace m2 {
1010
//// /** class comment;*/
1111
//// export class c {
1212
//// };
@@ -25,18 +25,18 @@
2525
////var new/*9*/Var = new extMod.m1.m2./*10*/c();
2626

2727
goTo.marker('2');
28-
verify.quickInfoIs("module m1", "ModuleComment");
28+
verify.quickInfoIs("namespace m1", "NamespaceComment");
2929

3030
goTo.marker('3');
3131
verify.quickInfoIs('import extMod = require("commentsImportDeclaration_file0")', "Import declaration");
3232

3333
goTo.marker('6');
34-
verify.memberListContains("m1", "module extMod.m1");
34+
verify.memberListContains("m1", "namespace extMod.m1");
3535

3636
goTo.marker('7');
3737
verify.memberListContains("b", "var extMod.m1.b: number", "b's comment");
3838
verify.memberListContains("fooExport", "function extMod.m1.fooExport(): number", "exported function");
39-
verify.memberListContains("m2", "module extMod.m1.m2");
39+
verify.memberListContains("m2", "namespace extMod.m1.m2");
4040

4141
goTo.marker('8');
4242
verify.currentSignatureHelpDocCommentIs("exported function");

0 commit comments

Comments
 (0)