core-tests.js revision 237a6bf60c2f2d180eb579178ab137e3d77a8227
name: "Core tests",
'cached functions should execute only once per input': function() {
var f1 = function(a) {
r1 += a;
};
c1('a');
c1('b');
c1('a');
c1('b');
c1('a');
c1('b');
var f2 = function(a, b) {
r2 += (a + b);
};
var o = new Y.EventTarget();
o.foo = 1;
var f3 = function(a) {
r3 += a;
};
a: 'z'
});
c3('a');
c3('b');
c3('a');
c3('b');
c3('a');
c3('b');
// falsy second arg needs to produce a different key than no second arg
},
test_ie_enum_bug: function() {
var o = {
valueOf: function() {
return 'foo';
}
},
p = Y.merge(o);
}
});
});