fix up test styling and add use-strict declarator
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
class Test extends Foo {
|
||||
constructor() {
|
||||
woops.super.test();
|
||||
super();
|
||||
super.test();
|
||||
foob(super);
|
||||
woops.super.test();
|
||||
super();
|
||||
super.test();
|
||||
foob(super);
|
||||
|
||||
super(...arguments);
|
||||
super("test", ...arguments);
|
||||
super(...arguments);
|
||||
super("test", ...arguments);
|
||||
|
||||
super.test(...arguments);
|
||||
super.test("test", ...arguments);
|
||||
super.test(...arguments);
|
||||
super.test("test", ...arguments);
|
||||
}
|
||||
|
||||
test() {
|
||||
super();
|
||||
super(...arguments);
|
||||
super("test", ...arguments);
|
||||
super();
|
||||
super(...arguments);
|
||||
super("test", ...arguments);
|
||||
}
|
||||
|
||||
static foo() {
|
||||
super();
|
||||
super(...arguments);
|
||||
super("test", ...arguments);
|
||||
super();
|
||||
super(...arguments);
|
||||
super("test", ...arguments);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
var _slice = Array.prototype.slice;
|
||||
|
||||
var Test = function(Foo) {
|
||||
@@ -9,11 +10,7 @@ var Test = function(Foo) {
|
||||
Foo.call.apply(Foo, [this].concat(_slice.call(arguments)));
|
||||
Foo.call.apply(Foo, [this, "test"].concat(_slice.call(arguments)));
|
||||
Foo.prototype.test.call.apply(Foo.prototype, [this].concat(_slice.call(arguments)));
|
||||
|
||||
Foo.prototype.test.call.apply(
|
||||
Foo.prototype,
|
||||
[this, "test"].concat(_slice.call(arguments))
|
||||
);
|
||||
Foo.prototype.test.call.apply(Foo.prototype, [this, "test"].concat(_slice.call(arguments)));
|
||||
};
|
||||
|
||||
Test.prototype = Object.create(Foo.prototype, {
|
||||
@@ -34,11 +31,7 @@ var Test = function(Foo) {
|
||||
value: function() {
|
||||
Foo.prototype.test.call(this);
|
||||
Foo.prototype.test.call.apply(Foo.prototype.test, [this].concat(_slice.call(arguments)));
|
||||
|
||||
Foo.prototype.test.call.apply(
|
||||
Foo.prototype.test,
|
||||
[this, "test"].concat(_slice.call(arguments))
|
||||
);
|
||||
Foo.prototype.test.call.apply(Foo.prototype.test, [this, "test"].concat(_slice.call(arguments)));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -56,4 +49,4 @@ var Test = function(Foo) {
|
||||
});
|
||||
|
||||
return Test;
|
||||
}(Foo);
|
||||
}(Foo);
|
||||
@@ -1,6 +1,6 @@
|
||||
class Test extends Foo {
|
||||
constructor() {
|
||||
super.test;
|
||||
super.test.whatever;
|
||||
super.test;
|
||||
super.test.whatever;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = function Test() {
|
||||
Foo.prototype.test;
|
||||
@@ -15,4 +17,4 @@ var Test = function(Foo) {
|
||||
|
||||
Test.__proto__ = Foo;
|
||||
return Test;
|
||||
}(Foo);
|
||||
}(Foo);
|
||||
@@ -1,10 +1,10 @@
|
||||
class Test extends Foo {
|
||||
constructor() {
|
||||
super.test.whatever();
|
||||
super.test();
|
||||
super.test.whatever();
|
||||
super.test();
|
||||
}
|
||||
|
||||
static test() {
|
||||
return super.wow();
|
||||
return super.wow();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = function Test() {
|
||||
Foo.prototype.test.whatever();
|
||||
Foo.prototype.test.call(this);
|
||||
};
|
||||
|
||||
Test.prototype = Object.create(Foo.prototype, {
|
||||
constructor: {
|
||||
value: Test,
|
||||
@@ -11,7 +14,9 @@ var Test = function(Foo) {
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
Test.__proto__ = Foo;
|
||||
|
||||
Object.defineProperties(Test, {
|
||||
test: {
|
||||
writable: true,
|
||||
@@ -21,5 +26,6 @@ var Test = function(Foo) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
}(Foo);
|
||||
}(Foo);
|
||||
@@ -1,11 +1,11 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
this.state = "test";
|
||||
this.state = "test";
|
||||
}
|
||||
}
|
||||
|
||||
class Foo extends Bar {
|
||||
constructor() {
|
||||
this.state = "test";
|
||||
this.state = "test";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
var Test = function () {
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {
|
||||
this.state = "test";
|
||||
};
|
||||
|
||||
return Test;
|
||||
}();
|
||||
|
||||
@@ -21,4 +24,4 @@ var Foo = function(Bar) {
|
||||
|
||||
Foo.__proto__ = Bar;
|
||||
return Foo;
|
||||
}(Bar);
|
||||
}(Bar);
|
||||
@@ -1,8 +1,8 @@
|
||||
class Test {
|
||||
get test() {
|
||||
return 5 + 5;
|
||||
return 5 + 5;
|
||||
}
|
||||
set test(val) {
|
||||
this._test = val;
|
||||
this._test = val;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
var Test = function () {
|
||||
var Test = function Test() { };
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {};
|
||||
|
||||
Object.defineProperties(Test.prototype, {
|
||||
test: {
|
||||
get: function () {
|
||||
get: function() {
|
||||
return 5 + 5;
|
||||
},
|
||||
set: function (val) {
|
||||
|
||||
set: function(val) {
|
||||
this._test = val;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
get test() {
|
||||
return 5 + 5;
|
||||
return 5 + 5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
var Test = function () {
|
||||
var Test = function Test() { };
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {};
|
||||
|
||||
Object.defineProperties(Test.prototype, {
|
||||
test: {
|
||||
get: function () {
|
||||
get: function() {
|
||||
return 5 + 5;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
test() {
|
||||
return 5 + 5;
|
||||
return 5 + 5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
var Test = function () {
|
||||
var Test = function Test() { };
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {};
|
||||
|
||||
Object.defineProperties(Test.prototype, {
|
||||
test: {
|
||||
writable: true,
|
||||
value: function () {
|
||||
|
||||
value: function() {
|
||||
return 5 + 5;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
set test(val) {
|
||||
this._test = val;
|
||||
this._test = val;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
var Test = function () {
|
||||
var Test = function Test() { };
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {};
|
||||
|
||||
Object.defineProperties(Test.prototype, {
|
||||
test: {
|
||||
set: function (val) {
|
||||
set: function(val) {
|
||||
this._test = val;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
@@ -1,4 +1,6 @@
|
||||
var Test = function () {
|
||||
var Test = function Test() { };
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {};
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
@@ -1,11 +1,11 @@
|
||||
var BaseView = class BaseView {
|
||||
constructor() {
|
||||
this.autoRender = true;
|
||||
this.autoRender = true;
|
||||
}
|
||||
}
|
||||
|
||||
var BaseView = class {
|
||||
constructor() {
|
||||
this.autoRender = true;
|
||||
this.autoRender = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
var BaseView = function () {
|
||||
"use strict";
|
||||
|
||||
var BaseView = function() {
|
||||
var BaseView = function BaseView() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
@@ -6,9 +8,10 @@ var BaseView = function () {
|
||||
return BaseView;
|
||||
}();
|
||||
|
||||
var BaseView = function () {
|
||||
var _class = function () {
|
||||
var BaseView = function() {
|
||||
var _class = function() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
|
||||
return _class;
|
||||
}();
|
||||
}();
|
||||
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var A = function() {
|
||||
var A = function A() {};
|
||||
|
||||
@@ -14,4 +16,4 @@ var A = function() {
|
||||
});
|
||||
|
||||
return A;
|
||||
}();
|
||||
}();
|
||||
@@ -1,7 +1,10 @@
|
||||
var BaseController = function (Chaplin) {
|
||||
"use strict";
|
||||
|
||||
var BaseController = function(Chaplin) {
|
||||
var BaseController = function BaseController() {
|
||||
Chaplin.Controller.apply(this, arguments);
|
||||
};
|
||||
|
||||
BaseController.prototype = Object.create(Chaplin.Controller.prototype, {
|
||||
constructor: {
|
||||
value: BaseController,
|
||||
@@ -10,14 +13,16 @@ var BaseController = function (Chaplin) {
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
BaseController.__proto__ = Chaplin.Controller;
|
||||
return BaseController;
|
||||
}(Chaplin);
|
||||
|
||||
var BaseController2 = function (Chaplin) {
|
||||
var BaseController2 = function(Chaplin) {
|
||||
var BaseController2 = function BaseController2() {
|
||||
Chaplin.Controller.Another.apply(this, arguments);
|
||||
};
|
||||
|
||||
BaseController2.prototype = Object.create(Chaplin.Controller.Another.prototype, {
|
||||
constructor: {
|
||||
value: BaseController2,
|
||||
@@ -26,6 +31,7 @@ var BaseController2 = function (Chaplin) {
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
BaseController2.__proto__ = Chaplin.Controller.Another;
|
||||
return BaseController2;
|
||||
}(Chaplin);
|
||||
}(Chaplin);
|
||||
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var Q = function(_ref) {
|
||||
var Q = function Q() {
|
||||
_ref.apply(this, arguments);
|
||||
@@ -11,7 +13,7 @@ var Q = function(_ref) {
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
Q.__proto__ = _ref;
|
||||
|
||||
Q.__proto__ = _ref;
|
||||
return Q;
|
||||
}(function() {});
|
||||
}(function() {});
|
||||
@@ -1,7 +1,10 @@
|
||||
var Test = function (Foo) {
|
||||
"use strict";
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = function Test() {
|
||||
Foo.apply(this, arguments);
|
||||
};
|
||||
|
||||
Test.prototype = Object.create(Foo.prototype, {
|
||||
constructor: {
|
||||
value: Test,
|
||||
@@ -10,6 +13,7 @@ var Test = function (Foo) {
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
Test.__proto__ = Foo;
|
||||
return Test;
|
||||
}(Foo);
|
||||
}(Foo);
|
||||
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
super.hasOwnProperty("test");
|
||||
super.hasOwnProperty("test");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
var Test = function () {
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {
|
||||
Function.prototype.hasOwnProperty.call(this, "test");
|
||||
};
|
||||
|
||||
return Test;
|
||||
}();
|
||||
}();
|
||||
Reference in New Issue
Block a user