Skip to content

Commit 61e2eb6

Browse files
Renamed tests.
1 parent f58e6fc commit 61e2eb6

15 files changed

Lines changed: 56 additions & 56 deletions

tests/baselines/reference/destructuringPropertyParameters1.errors.txt renamed to tests/baselines/reference/destructuringParameterProperties1.errors.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(22,26): error TS2339: Property 'x' does not exist on type 'C1'.
2-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(22,35): error TS2339: Property 'y' does not exist on type 'C1'.
3-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(22,43): error TS2339: Property 'y' does not exist on type 'C1'.
4-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(22,52): error TS2339: Property 'z' does not exist on type 'C1'.
5-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(25,30): error TS2339: Property 'x' does not exist on type 'C2'.
6-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(25,36): error TS2339: Property 'y' does not exist on type 'C2'.
7-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(25,42): error TS2339: Property 'z' does not exist on type 'C2'.
8-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(29,30): error TS2339: Property 'x' does not exist on type 'C3'.
9-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(29,36): error TS2339: Property 'y' does not exist on type 'C3'.
10-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts(29,42): error TS2339: Property 'z' does not exist on type 'C3'.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,26): error TS2339: Property 'x' does not exist on type 'C1'.
2+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,35): error TS2339: Property 'y' does not exist on type 'C1'.
3+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,43): error TS2339: Property 'y' does not exist on type 'C1'.
4+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(22,52): error TS2339: Property 'z' does not exist on type 'C1'.
5+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(25,30): error TS2339: Property 'x' does not exist on type 'C2'.
6+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(25,36): error TS2339: Property 'y' does not exist on type 'C2'.
7+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(25,42): error TS2339: Property 'z' does not exist on type 'C2'.
8+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(29,30): error TS2339: Property 'x' does not exist on type 'C3'.
9+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(29,36): error TS2339: Property 'y' does not exist on type 'C3'.
10+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts(29,42): error TS2339: Property 'z' does not exist on type 'C3'.
1111

1212

13-
==== tests/cases/conformance/es6/destructuring/destructuringPropertyParameters1.ts (10 errors) ====
13+
==== tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts (10 errors) ====
1414
class C1 {
1515
constructor(public [x, y, z]: string[]) {
1616
}

tests/baselines/reference/destructuringPropertyParameters1.js renamed to tests/baselines/reference/destructuringParameterProperties1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [destructuringPropertyParameters1.ts]
1+
//// [destructuringParameterProperties1.ts]
22
class C1 {
33
constructor(public [x, y, z]: string[]) {
44
}
@@ -29,7 +29,7 @@ var c3 = new C3({x: 0, y: "", z: false});
2929
c3 = new C3({x: 0, "y": "y", z: true});
3030
var [c3_x, c3_y, c3_z] = [c3.x, c3.y, c3.z];
3131

32-
//// [destructuringPropertyParameters1.js]
32+
//// [destructuringParameterProperties1.js]
3333
var C1 = (function () {
3434
function C1(_a) {
3535
var x = _a[0], y = _a[1], z = _a[2];

tests/baselines/reference/destructuringPropertyParameters2.errors.txt renamed to tests/baselines/reference/destructuringParameterProperties2.errors.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(3,59): error TS2339: Property 'b' does not exist on type 'C1'.
2-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(3,83): error TS2339: Property 'c' does not exist on type 'C1'.
3-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(4,18): error TS2339: Property 'a' does not exist on type 'C1'.
4-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(9,21): error TS2339: Property 'a' does not exist on type 'C1'.
5-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(13,21): error TS2339: Property 'b' does not exist on type 'C1'.
6-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(17,21): error TS2339: Property 'c' does not exist on type 'C1'.
7-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts(21,27): error TS2345: Argument of type '[number, undefined, string]' is not assignable to parameter of type '[number, string, boolean]'.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(3,59): error TS2339: Property 'b' does not exist on type 'C1'.
2+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(3,83): error TS2339: Property 'c' does not exist on type 'C1'.
3+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(4,18): error TS2339: Property 'a' does not exist on type 'C1'.
4+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(9,21): error TS2339: Property 'a' does not exist on type 'C1'.
5+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(13,21): error TS2339: Property 'b' does not exist on type 'C1'.
6+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(17,21): error TS2339: Property 'c' does not exist on type 'C1'.
7+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts(21,27): error TS2345: Argument of type '[number, undefined, string]' is not assignable to parameter of type '[number, string, boolean]'.
88

99

10-
==== tests/cases/conformance/es6/destructuring/destructuringPropertyParameters2.ts (7 errors) ====
10+
==== tests/cases/conformance/es6/destructuring/destructuringParameterProperties2.ts (7 errors) ====
1111
class C1 {
1212
constructor(private k: number, private [a, b, c]: [number, string, boolean]) {
1313
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {

tests/baselines/reference/destructuringPropertyParameters2.js renamed to tests/baselines/reference/destructuringParameterProperties2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [destructuringPropertyParameters2.ts]
1+
//// [destructuringParameterProperties2.ts]
22
class C1 {
33
constructor(private k: number, private [a, b, c]: [number, string, boolean]) {
44
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
@@ -29,7 +29,7 @@ var z = new C1(10, [undefined, "", null]);
2929
var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()];
3030

3131

32-
//// [destructuringPropertyParameters2.js]
32+
//// [destructuringParameterProperties2.js]
3333
var C1 = (function () {
3434
function C1(k, _a) {
3535
var a = _a[0], b = _a[1], c = _a[2];

tests/baselines/reference/destructuringPropertyParameters3.errors.txt renamed to tests/baselines/reference/destructuringParameterProperties3.errors.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts(3,59): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
2-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts(3,83): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
3-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts(4,18): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
4-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts(9,21): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
5-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts(13,21): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
6-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts(17,21): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(3,59): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
2+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(3,83): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
3+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(4,18): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
4+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(9,21): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
5+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(13,21): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
6+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts(17,21): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
77

88

9-
==== tests/cases/conformance/es6/destructuring/destructuringPropertyParameters3.ts (6 errors) ====
9+
==== tests/cases/conformance/es6/destructuring/destructuringParameterProperties3.ts (6 errors) ====
1010
class C1<T, U, V> {
1111
constructor(private k: T, private [a, b, c]: [T,U,V]) {
1212
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {

tests/baselines/reference/destructuringPropertyParameters3.js renamed to tests/baselines/reference/destructuringParameterProperties3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [destructuringPropertyParameters3.ts]
1+
//// [destructuringParameterProperties3.ts]
22
class C1<T, U, V> {
33
constructor(private k: T, private [a, b, c]: [T,U,V]) {
44
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
@@ -32,7 +32,7 @@ var w = new C1(10, [undefined, undefined, undefined]);
3232
var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()];
3333

3434

35-
//// [destructuringPropertyParameters3.js]
35+
//// [destructuringParameterProperties3.js]
3636
var C1 = (function () {
3737
function C1(k, _a) {
3838
var a = _a[0], b = _a[1], c = _a[2];

tests/baselines/reference/destructuringPropertyParameters4.errors.txt renamed to tests/baselines/reference/destructuringParameterProperties4.errors.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(4,59): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
2-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(4,83): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
3-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(5,18): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
4-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(10,21): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
5-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(14,21): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
6-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(18,21): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
7-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(24,24): error TS2339: Property 'a' does not exist on type 'C2'.
8-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(24,34): error TS2339: Property 'b' does not exist on type 'C2'.
9-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts(24,44): error TS2339: Property 'c' does not exist on type 'C2'.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(4,59): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
2+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(4,83): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
3+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(5,18): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
4+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(10,21): error TS2339: Property 'a' does not exist on type 'C1<T, U, V>'.
5+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(14,21): error TS2339: Property 'b' does not exist on type 'C1<T, U, V>'.
6+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(18,21): error TS2339: Property 'c' does not exist on type 'C1<T, U, V>'.
7+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(24,24): error TS2339: Property 'a' does not exist on type 'C2'.
8+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(24,34): error TS2339: Property 'b' does not exist on type 'C2'.
9+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts(24,44): error TS2339: Property 'c' does not exist on type 'C2'.
1010

1111

12-
==== tests/cases/conformance/es6/destructuring/destructuringPropertyParameters4.ts (9 errors) ====
12+
==== tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts (9 errors) ====
1313

1414
class C1<T, U, V> {
1515
constructor(private k: T, protected [a, b, c]: [T,U,V]) {

tests/baselines/reference/destructuringPropertyParameters4.js renamed to tests/baselines/reference/destructuringParameterProperties4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [destructuringPropertyParameters4.ts]
1+
//// [destructuringParameterProperties4.ts]
22

33
class C1<T, U, V> {
44
constructor(private k: T, protected [a, b, c]: [T,U,V]) {
@@ -27,7 +27,7 @@ class C2 extends C1<number, string, boolean> {
2727
}
2828

2929

30-
//// [destructuringPropertyParameters4.js]
30+
//// [destructuringParameterProperties4.js]
3131
var __extends = this.__extends || function (d, b) {
3232
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
3333
function __() { this.constructor = d; }

tests/baselines/reference/destructuringPropertyParameters5.errors.txt renamed to tests/baselines/reference/destructuringParameterProperties5.errors.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(5,27): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x1' and no string index signature.
2-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(5,31): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x2' and no string index signature.
3-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(5,35): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x3' and no string index signature.
4-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(7,29): error TS2339: Property 'x1' does not exist on type 'C1'.
5-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(7,40): error TS2339: Property 'x2' does not exist on type 'C1'.
6-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(7,51): error TS2339: Property 'x3' does not exist on type 'C1'.
7-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(7,62): error TS2339: Property 'y' does not exist on type 'C1'.
8-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(7,72): error TS2339: Property 'z' does not exist on type 'C1'.
9-
tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts(11,16): error TS2345: Argument of type '[{ x1: number; x2: string; x3: boolean; }, string, boolean]' is not assignable to parameter of type '[{ x: number; y: string; z: boolean; }, number, string]'.
1+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,27): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x1' and no string index signature.
2+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,31): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x2' and no string index signature.
3+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(5,35): error TS2459: Type '{ x: number; y: string; z: boolean; }' has no property 'x3' and no string index signature.
4+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(7,29): error TS2339: Property 'x1' does not exist on type 'C1'.
5+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(7,40): error TS2339: Property 'x2' does not exist on type 'C1'.
6+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(7,51): error TS2339: Property 'x3' does not exist on type 'C1'.
7+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(7,62): error TS2339: Property 'y' does not exist on type 'C1'.
8+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(7,72): error TS2339: Property 'z' does not exist on type 'C1'.
9+
tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts(11,16): error TS2345: Argument of type '[{ x1: number; x2: string; x3: boolean; }, string, boolean]' is not assignable to parameter of type '[{ x: number; y: string; z: boolean; }, number, string]'.
1010
Types of property '0' are incompatible.
1111
Type '{ x1: number; x2: string; x3: boolean; }' is not assignable to type '{ x: number; y: string; z: boolean; }'.
1212
Property 'x' is missing in type '{ x1: number; x2: string; x3: boolean; }'.
1313

1414

15-
==== tests/cases/conformance/es6/destructuring/destructuringPropertyParameters5.ts (9 errors) ====
15+
==== tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts (9 errors) ====
1616
type ObjType1 = { x: number; y: string; z: boolean }
1717
type TupleType1 = [ObjType1, number, string]
1818

tests/baselines/reference/destructuringPropertyParameters5.js renamed to tests/baselines/reference/destructuringParameterProperties5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [destructuringPropertyParameters5.ts]
1+
//// [destructuringParameterProperties5.ts]
22
type ObjType1 = { x: number; y: string; z: boolean }
33
type TupleType1 = [ObjType1, number, string]
44

@@ -12,7 +12,7 @@ class C1 {
1212
var a = new C1([{ x1: 10, x2: "", x3: true }, "", false]);
1313
var [a_x1, a_x2, a_x3, a_y, a_z] = [a.x1, a.x2, a.x3, a.y, a.z];
1414

15-
//// [destructuringPropertyParameters5.js]
15+
//// [destructuringParameterProperties5.js]
1616
var C1 = (function () {
1717
function C1(_a) {
1818
var _b = _a[0], x1 = _b.x1, x2 = _b.x2, x3 = _b.x3, y = _a[1], z = _a[2];

0 commit comments

Comments
 (0)