Skip to content

Commit fd25d9a

Browse files
committed
Generated baselines with clean file text (without marker)
This makes it easier to copy paste the file text in the editor when verifying
1 parent 0076313 commit fd25d9a

35 files changed

+387
-386
lines changed

tests/baselines/Abstracts.baseline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
original file
22
-----------------------------------
3-
^^abstract class Animal {
3+
abstract class Animal {
44
public age: number;
55
public yearsLeft() { return 20 - this.age; }
6-
^^abstract makeSound(): string;
6+
abstract makeSound(): string;
77
}
88

99
class Cow extends Animal {

tests/baselines/ArrowFunctionInsideTypeAssertion.baseline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ original file
33
// Issue: https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/292
44

55
var object = {
6-
setTransform: ^^<^^(^^domNode: ^^HTMLElement, ^^desiredValue: ^^string) ^^=> ^^void>^^null,
6+
setTransform: <(domNode: HTMLElement, desiredValue: string) => void>null,
77
setDisplay: (domNode: HTMLElement, desiredValue: string) => {
88
if (domNode.style.display !== desiredValue) {
99
domNode.style.display = desiredValue;
@@ -16,7 +16,7 @@ function f(x: string | ((value: string) => number)) {
1616
return +x
1717
}
1818
else {
19-
let f = ^^<^^(^^v: ^^string) ^^=> ^^number^^> ^^x
19+
let f = <(v: string) => number> x
2020
return f("hello world")
2121
}
2222
}

tests/baselines/Comments.baseline.txt

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,68 +8,68 @@ Pull requests:
88
- https://github.com/Microsoft/TypeScript-Sublime-Plugin/pull/308
99
*/
1010

11-
var ^^/* comment */ x: string = "yahoo";
12-
var x ^^/* comment */: string = "yahoo";
13-
var x: ^^/* comment */ string = "yahoo";
14-
var x: string ^^/* comment */ = "yahoo";
15-
var x: string = ^^/* comment */ "yahoo";
16-
var x: string = "yahoo" ^^/* comment */;
17-
var x: string = "yahoo"; ^^/* comment */
11+
var /* comment */ x: string = "yahoo";
12+
var x /* comment */: string = "yahoo";
13+
var x: /* comment */ string = "yahoo";
14+
var x: string /* comment */ = "yahoo";
15+
var x: string = /* comment */ "yahoo";
16+
var x: string = "yahoo" /* comment */;
17+
var x: string = "yahoo"; /* comment */
1818

19-
var ^^/* comment */ x: string = "yahoo"
20-
var x ^^/* comment */: string = "yahoo"
21-
var x: ^^/* comment */ string = "yahoo"
22-
var x: string ^^/* comment */ = "yahoo"
23-
var x: string = ^^/* comment */ "yahoo"
24-
var x: string = "yahoo" ^^/* comment */
19+
var /* comment */ x: string = "yahoo"
20+
var x /* comment */: string = "yahoo"
21+
var x: /* comment */ string = "yahoo"
22+
var x: string /* comment */ = "yahoo"
23+
var x: string = /* comment */ "yahoo"
24+
var x: string = "yahoo" /* comment */
2525

26-
^^/**/ interface i extends i1, i2, i3 {}
27-
interface ^^/**/ i extends i1, i2, i3 {}
28-
interface i ^^/**/ extends i1, i2, i3 {}
29-
interface i extends ^^/**/ i1, i2, i3 {}
30-
interface i extends i1 ^^/**/, i2, i3 {}
31-
interface i extends i1, ^^/**/ i2, i3 {}
32-
interface i extends i1, i2 ^^/**/, i3 {}
33-
interface i extends i1, i2, ^^/**/ i3 {}
34-
interface i extends i1, i2, i3 ^^/**/ {}
35-
^^/**/ interface ^^/**/ i ^^/**/ extends ^^/**/ i1, ^^/**/ i2, ^^/**/ i3 ^^/**/ {}
36-
^^/**/ interface ^^/**/ i ^^/**/ extends ^^/**/ i1 ^^/**/ , ^^/**/ i2 ^^/**/ , ^^/**/ i3 ^^/**/ {}
26+
/**/ interface i extends i1, i2, i3 {}
27+
interface /**/ i extends i1, i2, i3 {}
28+
interface i /**/ extends i1, i2, i3 {}
29+
interface i extends /**/ i1, i2, i3 {}
30+
interface i extends i1 /**/, i2, i3 {}
31+
interface i extends i1, /**/ i2, i3 {}
32+
interface i extends i1, i2 /**/, i3 {}
33+
interface i extends i1, i2, /**/ i3 {}
34+
interface i extends i1, i2, i3 /**/ {}
35+
/**/ interface /**/ i /**/ extends /**/ i1, /**/ i2, /**/ i3 /**/ {}
36+
/**/ interface /**/ i /**/ extends /**/ i1 /**/ , /**/ i2 /**/ , /**/ i3 /**/ {}
3737

38-
^^/**/class i extends c1,c2,c3{}
39-
class^^/**/i extends c1,c2,c3{}
40-
class i^^/**/extends c1,c2,c3{}
41-
class i extends^^/**/c1,c2,c3{}
42-
class i extends c1^^/**/,c2,c3{}
43-
class i extends c1,^^/**/c2,c3{}
44-
class i extends c1,c2^^/**/,c3{}
45-
class i extends c1,c2,^^/**/c3{}
46-
class i extends c1,c2,c3^^/**/{}
47-
^^/**/class^^/**/i^^/**/extends^^/**/c1,^^/**/c2,^^/**/c3^^/**/{}
48-
^^/**/class^^/**/i^^/**/extends^^/**/c1^^/**/,^^/**/c2^^/**/,^^/**/c3^^/**/{}
38+
/**/class i extends c1,c2,c3{}
39+
class/**/i extends c1,c2,c3{}
40+
class i/**/extends c1,c2,c3{}
41+
class i extends/**/c1,c2,c3{}
42+
class i extends c1/**/,c2,c3{}
43+
class i extends c1,/**/c2,c3{}
44+
class i extends c1,c2/**/,c3{}
45+
class i extends c1,c2,/**/c3{}
46+
class i extends c1,c2,c3/**/{}
47+
/**/class/**/i/**/extends/**/c1,/**/c2,/**/c3/**/{}
48+
/**/class/**/i/**/extends/**/c1/**/,/**/c2/**/,/**/c3/**/{}
4949

50-
interface KeyValuePair^^/**/<K, V> extends Array<K | V> { 0: K; 1: V; }
51-
interface KeyValuePair<K, V>^^/**/extends Array<K | V> { 0: K; 1: V; }
52-
interface KeyValuePair<K, V> extends^^/**/Array<K | V> { 0: K; 1: V; }
53-
interface KeyValuePair<K, V> extends Array^^/**/<K | V> { 0: K; 1: V; }
54-
interface KeyValuePair<K, V> extends Array<K | V>^^/**/{ 0: K; 1: V; }
50+
interface KeyValuePair/**/<K, V> extends Array<K | V> { 0: K; 1: V; }
51+
interface KeyValuePair<K, V>/**/extends Array<K | V> { 0: K; 1: V; }
52+
interface KeyValuePair<K, V> extends/**/Array<K | V> { 0: K; 1: V; }
53+
interface KeyValuePair<K, V> extends Array/**/<K | V> { 0: K; 1: V; }
54+
interface KeyValuePair<K, V> extends Array<K | V>/**/{ 0: K; 1: V; }
5555

56-
interface G^^/**/<extends_, _extends extends Function> {
56+
interface G/**/<extends_, _extends extends Function> {
5757
f<V extends U>(x: V): V;
5858
}
59-
interface G<extends_, _extends^^/**/extends Function> {
59+
interface G<extends_, _extends/**/extends Function> {
6060
f<V extends U>(x: V): V;
6161
}
62-
interface G<extends_, _extends extends^^/**/Function> {
62+
interface G<extends_, _extends extends/**/Function> {
6363
f<V extends U>(x: V): V;
6464
}
6565

66-
var x^^/*comments*/=new String();
67-
var x=^^/*comments*/new String();
68-
var x= new^^/*comments*/String();
66+
var x/*comments*/=new String();
67+
var x=/*comments*/new String();
68+
var x= new/*comments*/String();
6969

70-
var x ^^/* comments */ = new String();
71-
var x = ^^/* comments */ new String();
72-
var x = new ^^/* comments */ String();
70+
var x /* comments */ = new String();
71+
var x = /* comments */ new String();
72+
var x = new /* comments */ String();
7373
-----------------------------------
7474

7575
Grammar: TypeScript.tmLanguage

tests/baselines/FunctionMethodOverloads.baseline.txt

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
original file
22
-----------------------------------
33
/* Function overload tests */
4-
^^export function ^^testFunctionOverload(p: number): new() => any
5-
^^export function ^^testFunctionOverload(p: string)
6-
^^export function ^^testFunctionOverload(p: string [])
7-
^^export function ^^testFunctionOverload(p: {})
8-
^^export function ^^testFunctionOverload(p: {a: A, b:B} | string [])
9-
^^export function ^^testFunctionOverload(p: any): new() => any {
10-
^^throw new Error("")
4+
export function testFunctionOverload(p: number): new() => any
5+
export function testFunctionOverload(p: string)
6+
export function testFunctionOverload(p: string [])
7+
export function testFunctionOverload(p: {})
8+
export function testFunctionOverload(p: {a: A, b:B} | string [])
9+
export function testFunctionOverload(p: any): new() => any {
10+
throw new Error("")
1111
}
1212

13-
^^export function ^^testFunctionOverloadWithSemicolon(p: number): new () => any;
14-
^^export function ^^testFunctionOverloadWithSemicolon(p: string);
15-
^^export function ^^testFunctionOverloadWithSemicolon(p: string[]);
16-
^^export function ^^testFunctionOverloadWithSemicolon(p: {});
17-
^^export function ^^testFunctionOverloadWithSemicolon(p: { a: A, b: B } | string[]);
18-
^^export function ^^testFunctionOverloadWithSemicolon(p: any): new () => any {
19-
^^throw new Error("")
13+
export function testFunctionOverloadWithSemicolon(p: number): new () => any;
14+
export function testFunctionOverloadWithSemicolon(p: string);
15+
export function testFunctionOverloadWithSemicolon(p: string[]);
16+
export function testFunctionOverloadWithSemicolon(p: {});
17+
export function testFunctionOverloadWithSemicolon(p: { a: A, b: B } | string[]);
18+
export function testFunctionOverloadWithSemicolon(p: any): new () => any {
19+
throw new Error("")
2020
}
2121

2222

2323
class testClass {
2424
/* Function overload tests */
25-
^^public ^^testMethodOverload(p: number): new() => any
26-
^^public ^^testMethodOverload(p: string)
27-
^^public ^^testMethodOverload(p: string [])
28-
^^public ^^testMethodOverload(p: {})
29-
^^public ^^testMethodOverload(p: {a: A, b:B} | string [])
30-
^^public ^^testMethodOverload(p: any): new() => any {
31-
^^throw new Error("")
25+
public testMethodOverload(p: number): new() => any
26+
public testMethodOverload(p: string)
27+
public testMethodOverload(p: string [])
28+
public testMethodOverload(p: {})
29+
public testMethodOverload(p: {a: A, b:B} | string [])
30+
public testMethodOverload(p: any): new() => any {
31+
throw new Error("")
3232
}
3333

34-
^^public ^^testMethodOverloadWithSemicolon(p: number): new () => any;
35-
^^public ^^testMethodOverloadWithSemicolon(p: string);
36-
^^public ^^testMethodOverloadWithSemicolon(p: string[]);
37-
^^public ^^testMethodOverloadWithSemicolon(p: {});
38-
^^public ^^testMethodOverloadWithSemicolon(p: { a: A, b: B } | string[]);
39-
^^public ^^testMethodOverloadWithSemicolon(p: any): new () => any {
40-
^^throw new Error("")
34+
public testMethodOverloadWithSemicolon(p: number): new () => any;
35+
public testMethodOverloadWithSemicolon(p: string);
36+
public testMethodOverloadWithSemicolon(p: string[]);
37+
public testMethodOverloadWithSemicolon(p: {});
38+
public testMethodOverloadWithSemicolon(p: { a: A, b: B } | string[]);
39+
public testMethodOverloadWithSemicolon(p: any): new () => any {
40+
throw new Error("")
4141
}
4242
}
4343

4444
interface I {
45-
^^foo(): number
46-
^^bar(): string;
45+
foo(): number
46+
bar(): string;
4747
}
4848

4949
abstract class C {
50-
^^abstract ^^foo()
51-
^^abstract ^^bar()
50+
abstract foo()
51+
abstract bar()
5252
}
5353
-----------------------------------
5454

tests/baselines/FunctionMethodParameters.baseline.txt

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@ original file
22
-----------------------------------
33
/* Function parameter tests */
44
function testFunctionParamType(
5-
^^m1: string,
6-
^^m2: {},
7-
^^m3: any [],
8-
^^m4: {a: A, b: B},
9-
^^m5: () => void,
10-
^^m6: (x:(string), y:[number, string]) => number,
11-
^^m7: Array<number>,
12-
^^m8: [number, number],
13-
^^m9: {a: A, b: B} | [number, number],
14-
^^m10: (() => void) | string[]): number {
15-
^^return m6.length;
5+
m1: string,
6+
m2: {},
7+
m3: any [],
8+
m4: {a: A, b: B},
9+
m5: () => void,
10+
m6: (x:(string), y:[number, string]) => number,
11+
m7: Array<number>,
12+
m8: [number, number],
13+
m9: {a: A, b: B} | [number, number],
14+
m10: (() => void) | string[]): number {
15+
return m6.length;
1616
}
1717

1818
class testClass {
1919
/* method param type tests */
2020
public testMethodParamType(
21-
^^m1: string,
22-
^^m2: {},
23-
^^m3: any [],
24-
^^m4: {a: A, b: B},
25-
^^m5: () => void,
26-
^^m6: (x:(string), y:[number, string]) => number,
27-
^^m7: Array<number>,
28-
^^m8: [number, number],
29-
^^m9: {a: A, b: B} | [number, number],
30-
^^m10: (() => void) | string[]): number {
31-
^^return m6.length;
21+
m1: string,
22+
m2: {},
23+
m3: any [],
24+
m4: {a: A, b: B},
25+
m5: () => void,
26+
m6: (x:(string), y:[number, string]) => number,
27+
m7: Array<number>,
28+
m8: [number, number],
29+
m9: {a: A, b: B} | [number, number],
30+
m10: (() => void) | string[]): number {
31+
return m6.length;
3232
}
3333
}
3434
-----------------------------------

tests/baselines/FunctionMethodReturnTypes.baseline.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
original file
22
-----------------------------------
33
/* Function return type tests */
4-
^^export function ^^testFunctionReturnType1(): string [] { ^^return [""] }
5-
^^export function ^^testFunctionReturnType2(): {} { ^^return {} }
6-
^^export function ^^testFunctionReturnType3(): {a: A, b: B} { ^^return {a: {m: "" }, b: {m1: "" }} }
7-
^^export function ^^testFunctionReturnType4(): [number, number] { ^^return [1, 1] }
8-
^^export function ^^testFunctionReturnType5(): Array<A> { ^^return [{ m: "" }] }
9-
^^export function ^^testFunctionReturnType6(): new () => number { ^^throw new Error(""); }
10-
^^export function ^^testFunctionReturnType7(): (() => number) { ^^throw new Error(""); }
11-
^^export function ^^testFunctionReturnType8(): (() => number) [] { ^^throw new Error(""); }
12-
^^export function ^^testFunctionReturnType9(): (() => number) | (() => string) { ^^throw new Error(""); }
13-
^^export function ^^testFunctionReturnType10(): {a: A, b: B} [] { ^^return [{a: {m: "" }, b: {m1: "" }}] }
14-
^^export function ^^testFunctionReturnType11(): number | string { ^^return 1 }
15-
^^export function ^^testFunctionReturnType12(): number | string [] { ^^return }
16-
^^export function ^^testFunctionReturnType13(): [number, number] | string [] { ^^return [""] }
4+
export function testFunctionReturnType1(): string [] { return [""] }
5+
export function testFunctionReturnType2(): {} { return {} }
6+
export function testFunctionReturnType3(): {a: A, b: B} { return {a: {m: "" }, b: {m1: "" }} }
7+
export function testFunctionReturnType4(): [number, number] { return [1, 1] }
8+
export function testFunctionReturnType5(): Array<A> { return [{ m: "" }] }
9+
export function testFunctionReturnType6(): new () => number { throw new Error(""); }
10+
export function testFunctionReturnType7(): (() => number) { throw new Error(""); }
11+
export function testFunctionReturnType8(): (() => number) [] { throw new Error(""); }
12+
export function testFunctionReturnType9(): (() => number) | (() => string) { throw new Error(""); }
13+
export function testFunctionReturnType10(): {a: A, b: B} [] { return [{a: {m: "" }, b: {m1: "" }}] }
14+
export function testFunctionReturnType11(): number | string { return 1 }
15+
export function testFunctionReturnType12(): number | string [] { return }
16+
export function testFunctionReturnType13(): [number, number] | string [] { return [""] }
1717

1818
class TestClass {
1919
/* method return type tests */
20-
^^public ^^testMethodReturnType1(): string [] { ^^return [""] }
21-
^^public ^^testMethodReturnType2(): {} { ^^return {} }
22-
^^public ^^testMethodReturnType3(): {a: A, b: B} { ^^return {a: {m: "" }, b: {m1: "" }} }
23-
^^public ^^testMethodReturnType4(): [number, number] { ^^return [1, 1] }
24-
^^public ^^testMethodReturnType5(): Array<A> { ^^return [{ m: "" }] }
25-
^^public ^^testMethodReturnType6(): new () => number { ^^throw new Error(""); }
26-
^^public ^^testMethodReturnType7(): (() => number) { ^^throw new Error(""); }
27-
^^public ^^testMethodReturnType8(): (() => number) [] { ^^throw new Error(""); }
28-
^^public ^^testMethodReturnType9(): (() => number) | (() => string) { ^^throw new Error(""); }
29-
^^public ^^testMethodReturnType10(): {a: A, b: B} [] { ^^return [{a: {m: "" }, b: {m1: "" }}] }
30-
^^public ^^testMethodReturnType11(): number | string { ^^return 1 }
31-
^^public ^^testMethodReturnType12(): number | string [] { ^^return }
32-
^^public ^^testMethodReturnType13(): [number, number] | string [] { ^^return [""] }
20+
public testMethodReturnType1(): string [] { return [""] }
21+
public testMethodReturnType2(): {} { return {} }
22+
public testMethodReturnType3(): {a: A, b: B} { return {a: {m: "" }, b: {m1: "" }} }
23+
public testMethodReturnType4(): [number, number] { return [1, 1] }
24+
public testMethodReturnType5(): Array<A> { return [{ m: "" }] }
25+
public testMethodReturnType6(): new () => number { throw new Error(""); }
26+
public testMethodReturnType7(): (() => number) { throw new Error(""); }
27+
public testMethodReturnType8(): (() => number) [] { throw new Error(""); }
28+
public testMethodReturnType9(): (() => number) | (() => string) { throw new Error(""); }
29+
public testMethodReturnType10(): {a: A, b: B} [] { return [{a: {m: "" }, b: {m1: "" }}] }
30+
public testMethodReturnType11(): number | string { return 1 }
31+
public testMethodReturnType12(): number | string [] { return }
32+
public testMethodReturnType13(): [number, number] | string [] { return [""] }
3333
}
3434
-----------------------------------
3535

tests/baselines/Issue110.baseline.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
original file
22
-----------------------------------
3-
let number1 = ^^0x100
4-
let number2 = ^^14e15
5-
let number3 = ^^10.42e41.5
6-
let number4 = ^^4
7-
let number5 = ^^51.4
8-
let number6 = ^^12.4E10.2
9-
let number7 = ^^14.6e+10
10-
let number8 = ^^12E4
11-
let number9 = ^^10e10
12-
let number10 = ^^14e14.5
13-
let number11 = ^^12E-10
14-
let number12 = ^^13.4e-14.2
15-
let number13 = ^^14.12
16-
let number14 = ^^10.2E+4
17-
let number6 = ^^5.00567789e+2
18-
let i = ^^1, j = ^^1e3
3+
let number1 = 0x100
4+
let number2 = 14e15
5+
let number3 = 10.42e41.5
6+
let number4 = 4
7+
let number5 = 51.4
8+
let number6 = 12.4E10.2
9+
let number7 = 14.6e+10
10+
let number8 = 12E4
11+
let number9 = 10e10
12+
let number10 = 14e14.5
13+
let number11 = 12E-10
14+
let number12 = 13.4e-14.2
15+
let number13 = 14.12
16+
let number14 = 10.2E+4
17+
let number6 = 5.00567789e+2
18+
let i = 1, j = 1e3
1919

2020
/*
21-
^^
21+
2222
Testing comments
2323
*/
2424
-----------------------------------

0 commit comments

Comments
 (0)