Remove old tests

This commit is contained in:
Yui T 2015-04-08 22:02:10 -07:00
parent fb9009f741
commit 9d29629662
15 changed files with 0 additions and 257 deletions

View file

@ -1,25 +0,0 @@
//// [strictMode1.ts]
"use strict";
class A {}
class B extends A {}
//// [strictMode1.js]
"use strict";
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var A = (function () {
function A() {
}
return A;
})();
var B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
return B;
})(A);

View file

@ -1,9 +0,0 @@
=== tests/cases/compiler/strictMode1.ts ===
"use strict";
class A {}
>A : A
class B extends A {}
>B : B
>A : A

View file

@ -1,13 +0,0 @@
//// [strictMode2.ts]
"use strict";
function foo() {
return 30;
}
//// [strictMode2.js]
"use strict";
function foo() {
return 30;
}

View file

@ -1,8 +0,0 @@
=== tests/cases/compiler/strictMode2.ts ===
"use strict";
function foo() {
>foo : () => number
return 30;
}

View file

@ -1,36 +0,0 @@
//// [strictMode3.ts]
"use strict";
class A {
}
class B extends A {
}
function foo() {
return this.window;
}
//// [strictMode3.js]
"use strict";
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var A = (function () {
function A() {
}
return A;
})();
var B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
return B;
})(A);
function foo() {
return this.window;
}

View file

@ -1,20 +0,0 @@
=== tests/cases/compiler/strictMode3.ts ===
"use strict";
class A {
>A : A
}
class B extends A {
>B : B
>A : A
}
function foo() {
>foo : () => any
return this.window;
>this.window : any
>this : any
>window : any
}

View file

@ -1,14 +0,0 @@
//// [strictMode4.ts]
"use strict";
class A {
}
//// [strictMode4.js]
"use strict";
var A = (function () {
function A() {
}
return A;
})();

View file

@ -1,7 +0,0 @@
=== tests/cases/compiler/strictMode4.ts ===
"use strict";
class A {
>A : A
}

View file

@ -1,45 +0,0 @@
//// [strictMode5.ts]
function foo(...args) {
"use strict"
}
class A {
m() {
"use strict"
var v = () => {
return this.n();
};
}
n() {}
}
function bar(x: number = 10) {
"use strict"
}
//// [strictMode5.js]
function foo() {
"use strict";
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
}
var A = (function () {
function A() {
}
A.prototype.m = function () {
"use strict";
var _this = this;
var v = function () {
return _this.n();
};
};
A.prototype.n = function () { };
return A;
})();
function bar(x) {
"use strict";
if (x === void 0) { x = 10; }
}

View file

@ -1,38 +0,0 @@
=== tests/cases/compiler/strictMode5.ts ===
function foo(...args) {
>foo : (...args: any[]) => void
>args : any[]
"use strict"
}
class A {
>A : A
m() {
>m : () => void
"use strict"
var v = () => {
>v : () => void
>() => { return this.n(); } : () => void
return this.n();
>this.n() : void
>this.n : () => void
>this : A
>n : () => void
};
}
n() {}
>n : () => void
}
function bar(x: number = 10) {
>bar : (x?: number) => void
>x : number
"use strict"
}

View file

@ -1,3 +0,0 @@
"use strict";
class A {}
class B extends A {}

View file

@ -1,6 +0,0 @@
"use strict";
function foo() {
return 30;
}

View file

@ -1,11 +0,0 @@
"use strict";
class A {
}
class B extends A {
}
function foo() {
return this.window;
}

View file

@ -1,4 +0,0 @@
"use strict";
class A {
}

View file

@ -1,18 +0,0 @@
function foo(...args) {
"use strict"
}
class A {
m() {
"use strict"
var v = () => {
return this.n();
};
}
n() {}
}
function bar(x: number = 10) {
"use strict"
}