object-test.js revision 0d5c8130d4f4b9b6f527146c2c2fbd328bbb022c
name: 'Core',
setUp: function () {
this.o = {
a1: {
a2: {
a3: 'a'
}
},
b1: {
b2: 'b'
},
c1: 'c'
};
},
tearDown: function () {
delete this.o;
},
test_create: function () {
var a = {o: {a: 1}, y: {a: 1}},
b = {o: {b: 1}, x: {b: 1}},
c = Y.Object(a),
d = Y.Object(b);
Assert.isUndefined(c.x);
Assert.isUndefined(d.y);
},
test_getValue: function () {
},
test_setValue: function () {
},
test_people_messing_up_object_prototype: function () {
var count = 0;
Y.Object.each({}, function () {
count++;
});
}
}));