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",
setUp: function () {
});
},
tearDown: function () {
},
"test moveColumn() does nothing": function () {
table.moveColumn();
},
"test moveColumn(name) does nothing": function () {
},
"test moveColumn(string, number)": function () {
},
"test moveColumn(number, number)": function () {
},
"test moveColumn([number, number], number)": function () {
},
"test moveColumn(string, [number, number])": function () {
},
"test moveColumn(number, [number, number])": function () {
},
"test moveColumn([number, number], [number, number])": function () {
},
"moveColumn event should fire": function () {
onFired = false,
afterFired = false;
onFired = true;
});
afterFired = true;
});
},
"moveColumn event should have column and index": function () {
});
},
"moveColumn event should be preventable": function () {
e.preventDefault();
});
},
"moveColumn event e.column modification should apply": function () {
e.column = 'a';
});
},
"moveColumn event e.index modification should apply": function () {
e.index = 0;
});
},
"moveColumn should be chainable": function () {
}
}));
name: "addRow",
setUp: function () {
});
},
tearDown: function () {
},
"addRow() should do nothing": function () {
});
},
"addRow(data) should create a new Model in the data": function () {
},
"addRow(data) should fire the data's add event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"addRow(data, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"addRow(data) with autoSync:true should trigger Model sync": function () {
syncCalled = true;
};
},
"addRow(...) should be chainable": function () {
}
}));
name: "addRows",
setUp: function () {
});
},
tearDown: function () {
},
"addRows() should do nothing": function () {
});
},
"addRows([data]) should create a new Model in the data": function () {
{ a: 2, b: 2, c: 2 },
{ a: 3, b: 3, c: 3 }
]);
},
"addRows([data]) should fire the data's add event": function () {
beforeFired = true;
});
afterFired = true;
});
{ a: 2, b: 2, c: 2 },
{ a: 3, b: 3, c: 3 }
]);
},
"addRows([data], { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
{ a: 2, b: 2, c: 2 },
{ a: 3, b: 3, c: 3 }
], { sync: true });
},
"addRows([data]) with autoSync:true should trigger Model sync": function () {
syncCalled = true;
};
{ a: 2, b: 2, c: 2 },
{ a: 3, b: 3, c: 3 }
]);
},
"addRows(...) should be chainable": function () {
{ a: 2, b: 2, c: 2 },
{ a: 3, b: 3, c: 3 }
]));
}
}));
name: "modifyRow",
setUp: function () {
});
},
tearDown: function () {
},
"modifyRow() should do nothing": function () {
});
},
"modifyRow(index, data) should change the Model attributes": function () {
},
"modifyRow(id, data) should change the Model attributes": function () {
},
"modifyRow(clientId, data) should change the Model attributes": function () {
},
"modifyRow(model, data) should change the Model attributes": function () {
},
"modifyRow(index, data) should fire the model's change event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"modifyRow(id, data) should fire the model's change event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"modifyRow(clientId, data) should fire the model's model event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"modifyRow(model, data) should fire the model's change event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"modifyRow(index, data, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(id, data, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(clientId, data, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(model, data, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(index, data) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(id, data) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(clientId, data) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(model, data) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"modifyRow(...) should be chainable": function () {
}
}));
name: "removeRow",
setUp: function () {
data: [
]
});
},
tearDown: function () {
},
"removeRow() should do nothing": function () {
});
},
"removeRow(index) should delete the Model": function () {
},
"removeRow(id) should delete the Model attributes": function () {
},
"removeRow(clientId) should delete the Model attributes": function () {
},
"removeRow(model) should delete the Model attributes": function () {
},
"removeRow(index) should fire the data's remove event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"removeRow(id, data) should fire the data's remove event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"removeRow(clientId, data) should fire the data's remove event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"removeRow(model, data) should fire the data's remove event": function () {
beforeFired = true;
});
afterFired = true;
});
},
"removeRow(index, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(id, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(clientId, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(model, { sync: true }) should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(index) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(id) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(clientId) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(model) with autoSync: true should trigger Model sync": function () {
syncCalled = true;
};
},
"removeRow(...) should be chainable": function () {
}
}));