remove rows/columns tests added

This commit is contained in:
Vladimir Enchev
2015-10-01 14:20:34 +03:00
parent 52acc0b32e
commit 2532e1a9df

View File

@ -202,6 +202,26 @@ export function test_removeColumn_shouldThrow_onNullValues() {
}, "removeColumn called with null should throw exception"); }, "removeColumn called with null should throw exception");
} }
export function test_removeColumns() {
var columns = rootLayout.getColumns();
rootLayout.removeColumns();
TKUnit.assertEqual(rootLayout.getColumns().length, 0);
columns.forEach(c=> rootLayout.addColumn(c));
}
export function test_removeRows() {
var rows = rootLayout.getRows();
rootLayout.removeRows();
TKUnit.assertEqual(rootLayout.getRows().length, 0);
rows.forEach(r=> rootLayout.addRow(r));
}
export function test_getRows_shouldNotReturnNULL() { export function test_getRows_shouldNotReturnNULL() {
var rows = rootLayout.getRows(); var rows = rootLayout.getRows();
TKUnit.assert(rows, "getRows should not return null/undefinied"); TKUnit.assert(rows, "getRows should not return null/undefinied");