Oop Class
OOP test helper class: exports Loud class of ApiHelpers module
Item Index
Methods
Methods
inheritsCheckProto
(
-
Child -
Parent
Check protoype chain is correctly set up
Parameters:
-
ChildClassThe child class
-
ParentClassThe parent class
Example:
function A() {};
A.prototype.foo = function(x, y) {
return x + y;
};
function B() {};
B.prototype.foo = function(x, y) {
return 2 + this.super_.foo(x, y);
};
require.('extasy').extendCtor(B, A);
// all tests PASS
require.('tap-test-helpers').Oop.inheritsCheckProto(B, A);
