Lines Matching defs:Derived
10 function Derived() {
13 Derived.prototype = Object.create(Base.prototype);
20 assertEquals("Base this is Derived", super.f());
24 return "Derived"
29 Derived.prototype.toString = function() { return "this is Derived"; };
30 Derived.prototype.x = 27;
31 Derived.prototype.f = fDerived.toMethod(Derived.prototype);
34 assertEquals("Derived", new Derived().f());
58 function Derived() {}
59 Derived.__proto__ = Base;
60 Derived.prototype = {
62 constructor: Derived,
65 Derived.prototype.testGetter = function() {
67 }.toMethod(Derived.prototype);
68 derived = new Derived();
87 function Derived() {}
88 Derived.__proto__ = Base;
89 Derived.prototype = {
91 constructor: Derived,
94 Derived.prototype.testSetter = function() {
96 }.toMethod(Derived.prototype);
97 var d = new Derived();
114 function Derived() {}
115 Derived.__proto__ = Base;
116 Derived.prototype = {
118 constructor: Derived,
121 Derived.prototype.testGetter = function() {
123 }.toMethod(Derived.prototype);
124 assertEquals('derived', new Derived()[0]);
125 // assertEquals('derived', new Derived().testGetter());