datatable-mutable-tests.js revision 7ec3441e48d9669a482acaafd2eef499d699c8b8
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 autoSync values": function () {
var config = {
columns: ['a'],
data: [{a:1}]
}, table;
},
"test set('autoSync')": function () {
columns: ['a'],
data: [{a:1}]
});
}
}));
name: "addColumn",
setUp: function () {
});
},
tearDown: function () {
},
"test addColumn() does nothing": function () {
},
"test addColumn(string)": function () {
},
"test addColumn(config)": function () {
},
"test addColumn(string, number)": function () {
},
"test addColumn(config, number)": function () {
},
"test addColumn(string, [number, number])": function () {
// Can't resolve [3, 1]
},
"test addColumn(config, [number, number])": function () {
// Can't resolve [3, 1]
},
"addColumn event should fire": function () {
onFired = false,
afterFired = false;
onFired = true;
});
afterFired = true;
});
},
"addColumn event should have column config and index": function () {
});
},
"addColumn event should be preventable": function () {
e.preventDefault();
});
},
"addColumn event e.index modification should update destination": function () {
e.index = 1;
});
},
"addColumn should be chainable": function () {
}
}));
name: "modifyColumn",
setUp: function () {
});
},
tearDown: function () {
},
"test modifyColumn() does nothing": function () {
this.table.modifyColumn();
},
"test modifyColumn(string) does nothing": function () {
},
"test modifyColumn(string, obj)": function () {
},
"test modifyColumn(number, obj)": function () {
},
"test modifyColumn([number, number], obj)": function () {
},
"modifyColumn event should fire": function () {
onFired = false,
afterFired = false;
onFired = true;
});
afterFired = true;
});
},
"modifyColumn event should have column config and newColumnDef": function () {
config = e.newColumnDef;
});
},
"modifyColumn event should be preventable": function () {
e.preventDefault();
});
},
"modifyColumn event e.newColumnDef modification should apply": function () {
});
},
"modifyColumn should be chainable": function () {
}
}));
name: "removeColumn",
setUp: function () {
});
},
tearDown: function () {
},
"test removeColumn() does nothing": function () {
},
"test removeColumn(string)": function () {
},
"test removeColumn(number)": function () {
},
"test removeColumn([number, number])": function () {
},
"removeColumn event should fire": function () {
onFired = false,
afterFired = false;
onFired = true;
});
afterFired = true;
});
},
"removeColumn event should have column config": function () {
});
},
"removeColumn event should be preventable": function () {
e.preventDefault();
});
},
"removeColumn event e.column modification should apply": function () {
e.column = 'a';
});
},
"removeColumn should be chainable": function () {
}
}));
name: "moveColumn",
"": function () {
}
}));
name: "addRow",
"": function () {
}
}));
name: "addRows",
"": function () {
}
}));
name: "modifyRow",
"": function () {
}
}));
name: "removeRow",
"": function () {
}
}));