datatable-sort-tests.js revision fda6488421a920c5d67c89b52d03acad03df65b3
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 sortable values": function () {
var config = {
columns: ['a'],
data: [{a:1}]
}, table;
/*
* Commented out until #2528732 is fixed
config.sortable = 'a';
table = new Y.DataTable(config);
Y.Assert.areSame('auto', table.get('sortable'));
config.sortable = { a: -1 };
table = new Y.DataTable(config);
Y.Assert.areSame('auto', table.get('sortable'));
*/
},
"test set('sortable')": function () {
columns: ['a'],
data: [{a:1}]
});
},
"test sortBy values": function () {
var config = {
}, table;
},
"test set('sortBy')": function () {
});
// TODO: test invalid values, non-existant columns
}
}));
name: "DataTable.Sortable tests",
"test ui triggered sort": function () {
}).render();
// Should not error
}
// test sort state classes
// test sort event
// test sort(...)
// test toggleSort(...)
}));