Skip to content

Commit 0b227d5

Browse files
committed
Test baselines because of change
1 parent 00b4c2e commit 0b227d5

File tree

577 files changed

+823
-2334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

577 files changed

+823
-2334
lines changed

src/harness/compilerRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class CompilerBaselineRunner extends RunnerBase {
289289

290290
if (result.declFilesCode.length > 0) {
291291
jsCode += '\r\n\r\n';
292-
for (var i = 0; i < result.files.length; i++) {
292+
for (var i = 0; i < result.declFilesCode.length; i++) {
293293
jsCode += '//// [' + Harness.Path.getFileName(result.declFilesCode[i].fileName) + ']\r\n';
294294
jsCode += result.declFilesCode[i].code;
295295
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.ts (1 errors) ====
2+
///<reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.ts'/>
3+
import SubModule = require('SubModule');
4+
export var x: SubModule.m.m3.c;
5+
~
6+
!!! Exported variable 'x' has or is using name 'SubModule.m.m3.c' from private module 'SubModule'.
7+
8+
9+
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.ts (0 errors) ====
10+
11+
declare module "SubModule" {
12+
export module m {
13+
export module m3 {
14+
interface c {
15+
}
16+
}
17+
}
18+
}
19+

tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,3 @@ declare module "SubModule" {
3030
}
3131
}
3232
}
33-
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts]
34-
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
35-
export declare var x: SubModule.m.m3.c;
36-
37-
38-
//// [DtsFileErrors]
39-
40-
41-
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts (1 errors) ====
42-
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
43-
export declare var x: SubModule.m.m3.c;
44-
~~~~~~~~~~~~~~~~
45-
!!! Cannot find name 'SubModule'.
46-
47-
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts (0 errors) ====
48-
declare module "SubModule" {
49-
module m {
50-
module m3 {
51-
}
52-
}
53-
}
54-
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.ts (1 errors) ====
2+
import a = require('declFileExportAssignmentOfGenericInterface_0');
3+
export var x: a<a<string>>;
4+
~
5+
!!! Exported variable 'x' has or is using private name 'a'.
6+
x.a;
7+
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_0.ts (0 errors) ====
8+
9+
interface Foo<T> {
10+
a: string;
11+
}
12+
export = Foo;
13+

tests/baselines/reference/declFileExportAssignmentOfGenericInterface.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,3 @@ interface Foo<T> {
2727
a: string;
2828
}
2929
export = Foo;
30-
//// [declFileExportAssignmentOfGenericInterface_1.d.ts]
31-
export declare var x: a<a<string>>;
32-
33-
34-
//// [DtsFileErrors]
35-
36-
37-
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.d.ts (1 errors) ====
38-
export declare var x: a<a<string>>;
39-
~~~~~~~~~~~~
40-
!!! Cannot find name 'a'.
41-
42-
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_0.d.ts (0 errors) ====
43-
interface Foo<T> {
44-
a: string;
45-
}
46-
export = Foo;
47-
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
==== tests/cases/compiler/declFileExportImportChain_d.ts (1 errors) ====
2+
import c = require("declFileExportImportChain_c");
3+
export var x: c.b1.a.m2.c1;
4+
~
5+
!!! Exported variable 'x' has or is using private name 'm1.m2.c1'.
6+
==== tests/cases/compiler/declFileExportImportChain_a.ts (0 errors) ====
7+
8+
module m1 {
9+
export module m2 {
10+
export class c1 {
11+
}
12+
}
13+
}
14+
export = m1;
15+
16+
==== tests/cases/compiler/declFileExportImportChain_b.ts (0 errors) ====
17+
export import a = require("declFileExportImportChain_a");
18+
19+
==== tests/cases/compiler/declFileExportImportChain_b1.ts (0 errors) ====
20+
import b = require("declFileExportImportChain_b");
21+
export = b;
22+
23+
==== tests/cases/compiler/declFileExportImportChain_c.ts (0 errors) ====
24+
export import b1 = require("declFileExportImportChain_b1");
25+

tests/baselines/reference/declFileExportImportChain.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -73,34 +73,3 @@ import b = require("declFileExportImportChain_b");
7373
export = b;
7474
//// [declFileExportImportChain_c.d.ts]
7575
export import b1 = require("declFileExportImportChain_b1");
76-
//// [declFileExportImportChain_d.d.ts]
77-
export declare var x: m1.m2.c1;
78-
79-
80-
//// [DtsFileErrors]
81-
82-
83-
==== tests/cases/compiler/declFileExportImportChain_d.d.ts (1 errors) ====
84-
export declare var x: m1.m2.c1;
85-
~~~~~~~~
86-
!!! Cannot find name 'm1'.
87-
88-
==== tests/cases/compiler/declFileExportImportChain_a.d.ts (0 errors) ====
89-
declare module m1 {
90-
module m2 {
91-
class c1 {
92-
}
93-
}
94-
}
95-
export = m1;
96-
97-
==== tests/cases/compiler/declFileExportImportChain_b.d.ts (0 errors) ====
98-
export import a = require("declFileExportImportChain_a");
99-
100-
==== tests/cases/compiler/declFileExportImportChain_b1.d.ts (0 errors) ====
101-
import b = require("declFileExportImportChain_b");
102-
export = b;
103-
104-
==== tests/cases/compiler/declFileExportImportChain_c.d.ts (0 errors) ====
105-
export import b1 = require("declFileExportImportChain_b1");
106-
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
==== tests/cases/compiler/declFileExportImportChain2_d.ts (1 errors) ====
2+
import c = require("declFileExportImportChain2_c");
3+
export var x: c.b.m2.c1;
4+
~
5+
!!! Exported variable 'x' has or is using private name 'm1.m2.c1'.
6+
==== tests/cases/compiler/declFileExportImportChain2_a.ts (0 errors) ====
7+
8+
module m1 {
9+
export module m2 {
10+
export class c1 {
11+
}
12+
}
13+
}
14+
export = m1;
15+
16+
==== tests/cases/compiler/declFileExportImportChain2_b.ts (0 errors) ====
17+
import a = require("declFileExportImportChain2_a");
18+
export = a;
19+
20+
==== tests/cases/compiler/declFileExportImportChain2_c.ts (0 errors) ====
21+
export import b = require("declFileExportImportChain2_b");
22+

tests/baselines/reference/declFileExportImportChain2.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -64,31 +64,3 @@ import a = require("declFileExportImportChain2_a");
6464
export = a;
6565
//// [declFileExportImportChain2_c.d.ts]
6666
export import b = require("declFileExportImportChain2_b");
67-
//// [declFileExportImportChain2_d.d.ts]
68-
export declare var x: m1.m2.c1;
69-
70-
71-
//// [DtsFileErrors]
72-
73-
74-
==== tests/cases/compiler/declFileExportImportChain2_d.d.ts (1 errors) ====
75-
export declare var x: m1.m2.c1;
76-
~~~~~~~~
77-
!!! Cannot find name 'm1'.
78-
79-
==== tests/cases/compiler/declFileExportImportChain2_a.d.ts (0 errors) ====
80-
declare module m1 {
81-
module m2 {
82-
class c1 {
83-
}
84-
}
85-
}
86-
export = m1;
87-
88-
==== tests/cases/compiler/declFileExportImportChain2_b.d.ts (0 errors) ====
89-
import a = require("declFileExportImportChain2_a");
90-
export = a;
91-
92-
==== tests/cases/compiler/declFileExportImportChain2_c.d.ts (0 errors) ====
93-
export import b = require("declFileExportImportChain2_b");
94-
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
==== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts (2 errors) ====
2+
/**This is on import declaration*/
3+
import a1 = require("declFileImportModuleWithExportAssignment_0");
4+
export var a = a1;
5+
~
6+
!!! Exported variable 'a' has or is using name 'a1.connectExport' from private module 'a1'.
7+
~
8+
!!! Exported variable 'a' has or is using name 'a1.connectModule' from private module 'a1'.
9+
a.test1(null, null, null);
10+
11+
==== tests/cases/compiler/declFileImportModuleWithExportAssignment_0.ts (0 errors) ====
12+
13+
module m2 {
14+
export interface connectModule {
15+
(res, req, next): void;
16+
}
17+
export interface connectExport {
18+
use: (mod: connectModule) => connectExport;
19+
listen: (port: number) => void;
20+
}
21+
22+
}
23+
var m2: {
24+
(): m2.connectExport;
25+
test1: m2.connectModule;
26+
test2(): m2.connectModule;
27+
};
28+
export = m2;
29+

0 commit comments

Comments
 (0)