also test get/setData for labelless tables

Change-Id: I61f7eaaad92b2a7b543fbb8f16f5b695700e8073
This commit is contained in:
Bjoern Michaelsen
2015-04-14 02:33:21 +02:00
parent 9d130fd1f3
commit 4c28e293fc

View File

@@ -136,9 +136,12 @@ public class _XChartDataArray extends MultiMethodTest {
bResult = true;
double[][] _data = oObj.getData();
data = _data;
for (int i = 0; i < rowDscs.length; i++) {
for (int j = 0; j < colDscs.length; j++)
if(rowDscs.length != 0 && rowDscs.length != data.length)
bResult = false;
if(colDscs.length != 0 && colDscs.length != data[0].length)
bResult = false;
for (int i = 0; i < data.length; i++) {
for (int j = 0; j < data[i].length; j++)
data[i][j] = i * (j + 1);
}
oObj.setData(data);
@@ -211,8 +214,12 @@ public class _XChartDataArray extends MultiMethodTest {
double[][] _data = oObj.getData();
data = _data;
for (int i = 0; i < rowDscs.length; i++) {
for (int j = 0; j < colDscs.length; j++) {
if(rowDscs.length != 0 && rowDscs.length != data.length)
bResult = false;
if(colDscs.length != 0 && colDscs.length != data[0].length)
bResult = false;
for (int i = 0; i < data.length; i++) {
for (int j = 0; j < data[i].length; j++) {
bResult &= data[i][j] == _data[i][j];
}
}