restructure test directory

This commit is contained in:
Sebastian McKenzie
2014-10-11 22:42:31 +11:00
parent a1b2da49d7
commit bb9b7455b5
312 changed files with 24 additions and 25 deletions

View File

@@ -0,0 +1,26 @@
class Test extends Foo {
constructor() {
woops.super.test();
super();
super.test();
foob(super);
super(...arguments);
super("test", ...arguments);
super.test(...arguments);
super.test("test", ...arguments);
}
test() {
super();
super(...arguments);
super("test", ...arguments);
}
static foo() {
super();
super(...arguments);
super("test", ...arguments);
}
}

View File

@@ -0,0 +1,57 @@
var Test = function(Foo) {
function Test() {
woops.super.test();
Foo.call(this);
Foo.prototype.test.call(this);
foob(Foo);
Foo.call.apply(Foo, [this].concat(Array.prototype.slice.call(arguments)));
Foo.call.apply(Foo, [this, "test"].concat(Array.prototype.slice.call(arguments)));
Foo.prototype.test.call.apply(Foo.prototype, [this].concat(Array.prototype.slice.call(arguments)));
Foo.prototype.test.call.apply(
Foo.prototype,
[this, "test"].concat(Array.prototype.slice.call(arguments))
);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
Object.defineProperties(Test.prototype, {
test: {
writeable: true,
value: function() {
Foo.prototype.test.call(this);
Foo.prototype.test.call.apply(Foo.prototype.test, [this].concat(Array.prototype.slice.call(arguments)));
Foo.prototype.test.call.apply(
Foo.prototype.test,
[this, "test"].concat(Array.prototype.slice.call(arguments))
);
}
}
});
Object.defineProperties(Test, {
foo: {
writeable: true,
value: function() {
Foo.foo.call(this);
Foo.foo.call.apply(Foo.foo, [this].concat(Array.prototype.slice.call(arguments)));
Foo.foo.call.apply(Foo.foo, [this, "test"].concat(Array.prototype.slice.call(arguments)));
}
}
});
return Test;
}(Foo);

View File

@@ -0,0 +1,6 @@
class Test extends Foo {
constructor() {
super.test;
super.test.whatever;
}
}

View File

@@ -0,0 +1,18 @@
var Test = function(Foo) {
function Test() {
Foo.prototype.test;
Foo.prototype.test.whatever;
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
return Test;
}(Foo);

View File

@@ -0,0 +1,6 @@
class Test extends Foo {
constructor() {
super.test.whatever();
super.test();
}
}

View File

@@ -0,0 +1,16 @@
var Test = function(Foo) {
function Test() {
Foo.prototype.test.whatever();
Foo.prototype.test.call(this);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
return Test;
}(Foo);

View File

@@ -0,0 +1,11 @@
class Test {
constructor() {
this.state = "test";
}
}
class Foo extends Bar {
constructor() {
this.state = "test";
}
}

View File

@@ -0,0 +1,24 @@
var Test = function () {
function Test() {
this.state = "test";
}
return Test;
}();
var Foo = function(Bar) {
function Foo() {
this.state = "test";
}
Foo.prototype = Object.create(Bar.prototype, {
constructor: {
value: Foo,
enumerable: false,
writable: true,
configurable: true
}
});
Foo.__proto__ = Bar;
return Foo;
}(Bar);

View File

@@ -0,0 +1,4 @@
class Test {
get constructor() {
}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "unknown kind for constructor method"
}

View File

@@ -0,0 +1,8 @@
class Test {
get test() {
return 5 + 5;
}
set test(val) {
this._test = val;
}
}

View File

@@ -0,0 +1,15 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
get: function () {
return 5 + 5;
},
set: function (val) {
this._test = val;
}
}
});
return Test;
}();

View File

@@ -0,0 +1,5 @@
class Test {
get test() {
return 5 + 5;
}
}

View File

@@ -0,0 +1,12 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
get: function () {
return 5 + 5;
}
}
});
return Test;
}();

View File

@@ -0,0 +1,5 @@
class Test {
test() {
return 5 + 5;
}
}

View File

@@ -0,0 +1,13 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
writeable: true,
value: function () {
return 5 + 5;
}
}
});
return Test;
}();

View File

@@ -0,0 +1,5 @@
class Test {
set test(val) {
this._test = val;
}
}

View File

@@ -0,0 +1,12 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
set: function (val) {
this._test = val;
}
}
});
return Test;
}();

View File

@@ -0,0 +1 @@
class Test { }

View File

@@ -0,0 +1,5 @@
var Test = function () {
function Test() {
}
return Test;
}();

View File

@@ -0,0 +1,7 @@
var BaseView = class BaseView {
constructor() {
this.autoRender = true;
}
}
module.exports = BaseView;

View File

@@ -0,0 +1,9 @@
var BaseView = function () {
function BaseView() {
this.autoRender = true;
}
return BaseView;
}();
module.exports = BaseView;

View File

@@ -0,0 +1,13 @@
class A {
static a() {
}
static get b(){
}
static set b(b){
}
}

View File

@@ -0,0 +1,17 @@
var A = function() {
function A() {}
Object.defineProperties(A, {
a: {
writeable: true,
value: function() {}
},
b: {
get: function() {},
set: function(b) {}
}
});
return A;
}();

View File

@@ -0,0 +1,7 @@
class BaseController extends Chaplin.Controller {
}
class BaseController2 extends Chaplin.Controller.Another {
}

View File

@@ -0,0 +1,31 @@
var BaseController = function (Chaplin) {
function BaseController() {
Chaplin.Controller.apply(this, arguments);
}
BaseController.prototype = Object.create(Chaplin.Controller.prototype, {
constructor: {
value: BaseController,
enumerable: false,
writable: true,
configurable: true
}
});
BaseController.__proto__ = Chaplin.Controller;
return BaseController;
}(Chaplin);
var BaseController2 = function (Chaplin) {
function BaseController2() {
Chaplin.Controller.Another.apply(this, arguments);
}
BaseController2.prototype = Object.create(Chaplin.Controller.Another.prototype, {
constructor: {
value: BaseController2,
enumerable: false,
writable: true,
configurable: true
}
});
BaseController2.__proto__ = Chaplin.Controller.Another;
return BaseController2;
}(Chaplin);

View File

@@ -0,0 +1,3 @@
class Q extends function() {} {
}

View File

@@ -0,0 +1,17 @@
var Q = function(_ref) {
function Q() {
_ref.apply(this, arguments);
}
Q.prototype = Object.create(_ref.prototype, {
constructor: {
value: Q,
enumerable: false,
writable: true,
configurable: true
}
});
Q.__proto__ = _ref;
return Q;
}(function() {});

View File

@@ -0,0 +1 @@
class Test extends Foo { }

View File

@@ -0,0 +1,15 @@
var Test = function (Foo) {
function Test() {
Foo.apply(this, arguments);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
return Test;
}(Foo);

View File

@@ -0,0 +1,5 @@
class Test {
constructor() {
super.hasOwnProperty("test");
}
}

View File

@@ -0,0 +1,6 @@
var Test = function () {
function Test() {
Function.prototype.hasOwnProperty.call(this, "test");
}
return Test;
}();