Add new tests and baselines
This commit is contained in:
parent
abeb2a9364
commit
489349e089
12 changed files with 248 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
//// [test.ts]
|
||||
/* Detached Comment */
|
||||
|
||||
// Class Doo Comment
|
||||
export class Doo {}
|
||||
class Scooby extends Doo {}
|
||||
|
||||
//// [outFile.js]
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
/* Detached Comment */
|
||||
define("test", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
// Class Doo Comment
|
||||
var Doo = (function () {
|
||||
function Doo() {
|
||||
}
|
||||
return Doo;
|
||||
}());
|
||||
exports.Doo = Doo;
|
||||
var Scooby = (function (_super) {
|
||||
__extends(Scooby, _super);
|
||||
function Scooby() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return Scooby;
|
||||
}(Doo));
|
||||
});
|
|
@ -0,0 +1,11 @@
|
|||
=== tests/cases/compiler/test.ts ===
|
||||
/* Detached Comment */
|
||||
|
||||
// Class Doo Comment
|
||||
export class Doo {}
|
||||
>Doo : Symbol(Doo, Decl(test.ts, 0, 0))
|
||||
|
||||
class Scooby extends Doo {}
|
||||
>Scooby : Symbol(Scooby, Decl(test.ts, 3, 19))
|
||||
>Doo : Symbol(Doo, Decl(test.ts, 0, 0))
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
=== tests/cases/compiler/test.ts ===
|
||||
/* Detached Comment */
|
||||
|
||||
// Class Doo Comment
|
||||
export class Doo {}
|
||||
>Doo : Doo
|
||||
|
||||
class Scooby extends Doo {}
|
||||
>Scooby : Scooby
|
||||
>Doo : Doo
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
//// [test.ts]
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
class Doo {}
|
||||
class Scooby extends Doo {}
|
||||
|
||||
//// [outFile.js]
|
||||
#!/usr/bin/env gjs
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var Doo = (function () {
|
||||
function Doo() {
|
||||
}
|
||||
return Doo;
|
||||
}());
|
||||
var Scooby = (function (_super) {
|
||||
__extends(Scooby, _super);
|
||||
function Scooby() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return Scooby;
|
||||
}(Doo));
|
|
@ -0,0 +1,10 @@
|
|||
=== tests/cases/compiler/test.ts ===
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
class Doo {}
|
||||
>Doo : Symbol(Doo, Decl(test.ts, 1, 12))
|
||||
|
||||
class Scooby extends Doo {}
|
||||
>Scooby : Symbol(Scooby, Decl(test.ts, 2, 12))
|
||||
>Doo : Symbol(Doo, Decl(test.ts, 1, 12))
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
=== tests/cases/compiler/test.ts ===
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
>"use strict" : "use strict"
|
||||
|
||||
class Doo {}
|
||||
>Doo : Doo
|
||||
|
||||
class Scooby extends Doo {}
|
||||
>Scooby : Scooby
|
||||
>Doo : Doo
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
//// [tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts] ////
|
||||
|
||||
//// [test.ts]
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
class Doo {}
|
||||
class Scooby extends Doo {}
|
||||
|
||||
//// [test1.ts]
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
"Another prologue"
|
||||
class Dood {}
|
||||
class Scoobyd extends Dood {}
|
||||
|
||||
//// [outFile.js]
|
||||
#!/usr/bin/env gjs
|
||||
"use strict";
|
||||
"Another prologue";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var Doo = (function () {
|
||||
function Doo() {
|
||||
}
|
||||
return Doo;
|
||||
}());
|
||||
var Scooby = (function (_super) {
|
||||
__extends(Scooby, _super);
|
||||
function Scooby() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return Scooby;
|
||||
}(Doo));
|
||||
var Dood = (function () {
|
||||
function Dood() {
|
||||
}
|
||||
return Dood;
|
||||
}());
|
||||
var Scoobyd = (function (_super) {
|
||||
__extends(Scoobyd, _super);
|
||||
function Scoobyd() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return Scoobyd;
|
||||
}(Dood));
|
|
@ -0,0 +1,21 @@
|
|||
=== tests/cases/compiler/test.ts ===
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
class Doo {}
|
||||
>Doo : Symbol(Doo, Decl(test.ts, 1, 12))
|
||||
|
||||
class Scooby extends Doo {}
|
||||
>Scooby : Symbol(Scooby, Decl(test.ts, 2, 12))
|
||||
>Doo : Symbol(Doo, Decl(test.ts, 1, 12))
|
||||
|
||||
=== tests/cases/compiler/test1.ts ===
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
"Another prologue"
|
||||
class Dood {}
|
||||
>Dood : Symbol(Dood, Decl(test1.ts, 2, 18))
|
||||
|
||||
class Scoobyd extends Dood {}
|
||||
>Scoobyd : Symbol(Scoobyd, Decl(test1.ts, 3, 13))
|
||||
>Dood : Symbol(Dood, Decl(test1.ts, 2, 18))
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
=== tests/cases/compiler/test.ts ===
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
>"use strict" : "use strict"
|
||||
|
||||
class Doo {}
|
||||
>Doo : Doo
|
||||
|
||||
class Scooby extends Doo {}
|
||||
>Scooby : Scooby
|
||||
>Doo : Doo
|
||||
|
||||
=== tests/cases/compiler/test1.ts ===
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
>"use strict" : "use strict"
|
||||
|
||||
"Another prologue"
|
||||
>"Another prologue" : "Another prologue"
|
||||
|
||||
class Dood {}
|
||||
>Dood : Dood
|
||||
|
||||
class Scoobyd extends Dood {}
|
||||
>Scoobyd : Scoobyd
|
||||
>Dood : Dood
|
||||
|
10
tests/cases/compiler/emitBundleWithPrologueDirectives1.ts
Normal file
10
tests/cases/compiler/emitBundleWithPrologueDirectives1.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
// @outFile: outFile.js
|
||||
// @module: amd
|
||||
// @target: es5
|
||||
|
||||
// @Filename: test.ts
|
||||
/* Detached Comment */
|
||||
|
||||
// Class Doo Comment
|
||||
export class Doo {}
|
||||
class Scooby extends Doo {}
|
|
@ -0,0 +1,9 @@
|
|||
// @outFile: outFile.js
|
||||
// @module: amd
|
||||
// @target: es5
|
||||
|
||||
// @Filename: test.ts
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
class Doo {}
|
||||
class Scooby extends Doo {}
|
|
@ -0,0 +1,16 @@
|
|||
// @outFile: outFile.js
|
||||
// @module: amd
|
||||
// @target: es5
|
||||
|
||||
// @Filename: test.ts
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
class Doo {}
|
||||
class Scooby extends Doo {}
|
||||
|
||||
// @Filename: test1.ts
|
||||
#!/usr/bin/env gjs
|
||||
"use strict"
|
||||
"Another prologue"
|
||||
class Dood {}
|
||||
class Scoobyd extends Dood {}
|
Loading…
Reference in a new issue