diff options
author | Titta Heikkala <titta.heikkala@digia.com> | 2014-05-05 10:00:52 +0300 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@digia.com> | 2014-05-05 13:33:01 +0300 |
commit | 7786daffde49e02372b72c91995c1f384d756c48 (patch) | |
tree | fe0eca3f2b2e16cfd8b797eca79c17454149538d /tests | |
parent | 8344a0102a72f2fbdafe472bd88082866a495b51 (diff) |
Add count property for QBoxPlotSeries
Changed set count to property for QBoxPlotSeries.
Task-number: QTRD-2504
Change-Id: Id65e0b2b6e43b3a6330fbb21c66e1cfa4d0db3d2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml-qtquicktest/tst_boxplotseries.qml | 6 | ||||
-rw-r--r-- | tests/auto/qml-qtquicktest/tst_boxplotseries_1_3.qml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml-qtquicktest/tst_boxplotseries.qml b/tests/auto/qml-qtquicktest/tst_boxplotseries.qml index 7a991a6d..54252e00 100644 --- a/tests/auto/qml-qtquicktest/tst_boxplotseries.qml +++ b/tests/auto/qml-qtquicktest/tst_boxplotseries.qml @@ -44,6 +44,7 @@ Rectangle { } function test_append() { + boxPlotSeries.clear(); addedSpy.clear(); countChangedSpy.clear(); var count = 50; @@ -51,11 +52,12 @@ Rectangle { boxPlotSeries.append("boxplot" + i, Math.random()); compare(addedSpy.count, count); compare(countChangedSpy.count, count); - console.log("Check the series count once QTRD-2504 is implemented"); + compare(boxPlotSeries.count, count) boxPlotSeries.clear(); } function test_remove() { + boxPlotSeries.clear(); removedSpy.clear(); countChangedSpy.clear(); var count = 50; @@ -65,7 +67,7 @@ Rectangle { boxPlotSeries.remove(boxPlotSeries.at(0)); compare(removedSpy.count, count); compare(countChangedSpy.count, 2 * count); - console.log("Check the series count once QTRD-2504 is implemented"); + compare(boxPlotSeries.count, 0) } } diff --git a/tests/auto/qml-qtquicktest/tst_boxplotseries_1_3.qml b/tests/auto/qml-qtquicktest/tst_boxplotseries_1_3.qml index 28ae66ff..9babadfa 100644 --- a/tests/auto/qml-qtquicktest/tst_boxplotseries_1_3.qml +++ b/tests/auto/qml-qtquicktest/tst_boxplotseries_1_3.qml @@ -49,7 +49,6 @@ Rectangle { boxPlotSeries.append("boxplot" + i, Math.random()); compare(addedSpy.count, count); compare(countChangedSpy.count, count); - console.log("Check the series count once QTRD-2504 is implemented"); boxPlotSeries.clear(); } @@ -63,7 +62,6 @@ Rectangle { boxPlotSeries.remove(boxPlotSeries.at(0)); compare(removedSpy.count, count); compare(countChangedSpy.count, 2 * count); - console.log("Check the series count once QTRD-2504 is implemented"); } } |