Lines Matching refs:function
31 function MirrorRefCache(json_refs) {
39 MirrorRefCache.prototype.lookup = function(handle) {
43 function testObjectMirror(obj, cls_name, ctor_name, hasSpecialProperties) {
62 assertEquals(ctor_name, mirror.constructorFunction().name(), 'Unexpected constructor function name');
95 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON');
96 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON');
97 assertEquals(ctor_name, refs.lookup(fromJSON.constructorFunction.ref).name, 'Unexpected constructor function name in JSON');
161 function Point(x,y) {
169 testObjectMirror({'1':void 0,'2':null,'f':function pow(x,y){return Math.pow(x,y);}}, 'Object', 'Object');
194 o.__defineGetter__('a', function(){return 'a';});
195 o.__defineSetter__('b', function(){});
196 o.__defineGetter__('c', function(){throw 'c';});
197 o.__defineSetter__('c', function(){throw 'c';});
204 assertEquals('function', mirror.property('a').getter().type());
206 assertEquals('function (){return \'a\';}', mirror.property('a').getter().source());
212 assertEquals('function', mirror.property('b').setter().type());
213 assertEquals('function (){}', mirror.property('b').setter().source());
219 assertEquals('function', mirror.property('c').getter().type());
220 assertEquals('function', mirror.property('c').setter().type());
221 assertEquals('function (){throw \'c\';}', mirror.property('c').getter().source());
222 assertEquals('function (){throw \'c\';}', mirror.property('c').setter().source());