core-tests.js revision 7a685ad8e3b2ef0bf1db17e4af0c55aad6811342
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);
},
test_guid: function() {
for (i = 0; i < 1000; i++) {
}
},
test_stamp: function() {
for (i = 0; i < 1000; i++) {
}
},
test_use_array: function() {
});
},
test_use_strings: function() {
});
},
test_one_submodule: function() {
YUI({
modules:{
'something':{
'submodules':{
'something1':{
}
}
}
}
}).use('something1', function(Y) {
});
},
test_rollup_false: function() {
});
});
},
test_log_params: function() {
return;
}
last;
};
Y.config.logInclude = {
logMe: true,
butNotMe: false
};
Y.config.logExclude = {
excludeMe: true,
butDontExcludeMe: false
};
});
}
});
});