datatable-scroll-tests.js revision 33aae62dca7bd174fde5b0afbe732871d60e13fb
name: "lifecycle and instantiation",
"Y.DataTable should be augmented": function () {
},
"Y.DataTable.Base should not be augmented": function () {
},
"Y.DataTable constructor should not error": function () {
columns: ['a'],
data: [{a:1}]
});
},
"test scrollable values": function () {
var config = {
columns: ['a'],
data: [{a:1}]
}, table;
config.scrollable = false;
config.scrollable = true;
/*
* Commented out until #2528732 is fixed
config.scrollable = 'ab';
table = new Y.DataTable(config);
Y.Assert.isFalse(table.get('scrollable'));
config.scrollable = ['x', 'y'];
table = new Y.DataTable(config);
Y.Assert.isFalse(table.get('scrollable'));
config.scrollable = { x: true };
table = new Y.DataTable(config);
Y.Assert.isFalse(table.get('scrollable'));
*/
},
"test set('scrollable')": function () {
columns: ['a'],
data: [{a:1}]
});
}
// render()
// destroy()
}));
name: "scrollTo",
setUp: function () {
var data = [], i;
for (i = 0; i < 10; ++i) {
}
for (; i < 100; ++i) {
}
},
"": function () {
}
}));
name: "y scroll",
"": function () {
}
}));
name: "x scroll",
"": function () {
}
}));
name: "xy scroll",
"": function () {
}
}));