ObjectAssert = Y.ObjectAssert,
deep = {
one: {
two: {
three: {
four: {
five: {
six: {
}
}
}
}
}
}
};
name: "Dump tests",
test_dump: function() {
// Other types tested in substitute
},
'test: dump with a date': function() {
var d = new Date();
date: d
});
},
'test: HTMLElement': function() {
nodeType: 3,
tagName: 'DIV',
id: 'foo'
});
},
'test: HTMLDocument': function() {
location: {},
body: {}
});
},
'test: HTMLWindow': function() {
document: {},
navigator: {}
});
},
'test: function': function() {
});
},
'test: array': function() {
},
'test: array with object': function() {
}]);
Assert.areEqual('[1, 2, 3, 4, {one => true, two => true}]', out, 'Failed to encode array with Object');
},
'test: array with regex': function() {
},
'test: default depth': function() {
},
'test: depth of 5': function() {
Assert.areEqual('{one => {two => {three => {four => {five => {six => {...}}}}}}}', out, 'Failed to truncate at 5');
},
'test: depth of 10': function() {
Assert.areEqual('{one => {two => {three => {four => {five => {six => {seven => [1, 2, 3, 4, 5]}}}}}}}', out, 'Failed to truncate at 5');
}
}));
});