tst_chartdataset.cpp
538 lines
| 14.9 KiB
| text/x-c
|
CppLexer
|
r771 | /**************************************************************************** | ||
** | ||||
** Copyright (C) 2012 Digia Plc | ||||
** All rights reserved. | ||||
** For any questions to Digia, please use contact form at http://qt.digia.com | ||||
** | ||||
** This file is part of the Qt Commercial Charts Add-on. | ||||
** | ||||
** $QT_BEGIN_LICENSE$ | ||||
** Licensees holding valid Qt Commercial licenses may use this file in | ||||
** accordance with the Qt Commercial License Agreement provided with the | ||||
** Software or, alternatively, in accordance with the terms contained in | ||||
** a written agreement between you and Digia. | ||||
** | ||||
** If you have questions regarding the use of this file, please use | ||||
** contact form at http://qt.digia.com | ||||
** $QT_END_LICENSE$ | ||||
** | ||||
****************************************************************************/ | ||||
|
r224 | #include <QtTest/QtTest> | ||
#include <qchartaxis.h> | ||||
|
r349 | #include <qlineseries.h> | ||
|
r224 | #include <private/chartdataset_p.h> | ||
#include <private/domain_p.h> | ||||
QTCOMMERCIALCHART_USE_NAMESPACE | ||||
|
r439 | Q_DECLARE_METATYPE(Domain*) | ||
|
r224 | Q_DECLARE_METATYPE(QChartAxis*) | ||
|
r360 | Q_DECLARE_METATYPE(QSeries*) | ||
|
r349 | Q_DECLARE_METATYPE(QLineSeries*) | ||
|
r224 | |||
class tst_ChartDataSet: public QObject { | ||||
|
r771 | Q_OBJECT | ||
public Q_SLOTS: | ||||
|
r224 | void initTestCase(); | ||
void cleanupTestCase(); | ||||
void init(); | ||||
void cleanup(); | ||||
|
r771 | private Q_SLOTS: | ||
|
r224 | void chartdataset_data(); | ||
void chartdataset(); | ||||
void addSeries_data(); | ||||
void addSeries(); | ||||
void removeSeries_data(); | ||||
void removeSeries(); | ||||
|
r258 | void removeAllSeries_data(); | ||
void removeAllSeries(); | ||||
|
r439 | void axisY_data(); | ||
void axisY(); | ||||
|
r910 | void seriesCount_data(); | ||
void seriesCount(); | ||||
|
r771 | void seriesIndex_data(); | ||
void seriesIndex(); | ||||
void domain_data(); | ||||
void domain(); | ||||
void zoomInDomain_data(); | ||||
void zoomInDomain(); | ||||
void zoomOutDomain_data(); | ||||
void zoomOutDomain(); | ||||
void scrollDomain_data(); | ||||
void scrollDomain(); | ||||
|
r224 | }; | ||
void tst_ChartDataSet::initTestCase() | ||||
{ | ||||
|
r439 | qRegisterMetaType<Domain*>(); | ||
|
r224 | qRegisterMetaType<QChartAxis*>(); | ||
|
r360 | qRegisterMetaType<QSeries*>(); | ||
|
r224 | } | ||
void tst_ChartDataSet::cleanupTestCase() | ||||
{ | ||||
} | ||||
void tst_ChartDataSet::init() | ||||
{ | ||||
} | ||||
void tst_ChartDataSet::cleanup() | ||||
{ | ||||
} | ||||
void tst_ChartDataSet::chartdataset_data() | ||||
{ | ||||
} | ||||
void tst_ChartDataSet::chartdataset() | ||||
{ | ||||
ChartDataSet dataSet; | ||||
QVERIFY2(dataSet.axisX(), "Missing axisX."); | ||||
QVERIFY2(dataSet.axisY(), "Missing axisY."); | ||||
//check if not dangling pointer | ||||
dataSet.axisX()->objectName(); | ||||
dataSet.axisY()->objectName(); | ||||
|
r910 | QLineSeries* series = new QLineSeries(this); | ||
QCOMPARE(dataSet.seriesIndex(series),-1); | ||||
|
r224 | } | ||
void tst_ChartDataSet::addSeries_data() | ||||
{ | ||||
|
r439 | QTest::addColumn<QLineSeries*>("series0"); | ||
QTest::addColumn<QChartAxis*>("axis0"); | ||||
QTest::addColumn<QLineSeries*>("series1"); | ||||
QTest::addColumn<QChartAxis*>("axis1"); | ||||
QTest::addColumn<QLineSeries*>("series2"); | ||||
QTest::addColumn<QChartAxis*>("axis2"); | ||||
QTest::addColumn<int>("axisCount"); | ||||
QLineSeries* series0 = new QLineSeries(this); | ||||
QLineSeries* series1 = new QLineSeries(this); | ||||
QLineSeries* series2 = new QLineSeries(this); | ||||
QChartAxis* axis0 = new QChartAxis(this); | ||||
QChartAxis* axis1 = new QChartAxis(this); | ||||
QChartAxis* axis2 = new QChartAxis(this); | ||||
QTest::newRow("default axis Y: series0,series1,series2") << series0 << (QChartAxis*)0 << series1 << (QChartAxis*)0 << series2 << (QChartAxis*)0 << 2; | ||||
QTest::newRow("default axis Y: series0, axis 0: series1,series2") << series0 << (QChartAxis*)0 << series1 << axis0 << series2 << axis0 << 3; | ||||
QTest::newRow("axis0: series0, axis1: series1, axis2: series2") << series0 << axis0 << series1 << axis1 << series2 << axis2 << 4; | ||||
|
r224 | } | ||
void tst_ChartDataSet::addSeries() | ||||
{ | ||||
|
r439 | QFETCH(QLineSeries*, series0); | ||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
|
r411 | |||
ChartDataSet dataSet; | ||||
|
r439 | QSignalSpy spy0(&dataSet, SIGNAL(axisAdded(QChartAxis*,Domain*))); | ||
QSignalSpy spy1(&dataSet, SIGNAL(axisRemoved(QChartAxis*))); | ||||
QSignalSpy spy2(&dataSet, SIGNAL(seriesAdded(QSeries*,Domain*))); | ||||
QSignalSpy spy3(&dataSet, SIGNAL(seriesRemoved(QSeries*))); | ||||
|
r411 | |||
|
r439 | dataSet.addSeries(series0,axis0); | ||
dataSet.addSeries(series1,axis1); | ||||
dataSet.addSeries(series2,axis2); | ||||
|
r411 | |||
QCOMPARE(spy0.count(), axisCount); | ||||
|
r439 | QCOMPARE(spy1.count(), 0); | ||
QCOMPARE(spy2.count(), 3); | ||||
QCOMPARE(spy3.count(), 0); | ||||
|
r224 | |||
} | ||||
|
r439 | void tst_ChartDataSet::removeSeries_data() | ||
|
r224 | { | ||
|
r771 | addSeries_data(); | ||
|
r224 | } | ||
|
r439 | void tst_ChartDataSet::removeSeries() | ||
|
r224 | { | ||
|
r439 | QFETCH(QLineSeries*, series0); | ||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
|
r224 | |||
|
r439 | ChartDataSet dataSet; | ||
|
r224 | |||
|
r439 | dataSet.addSeries(series0,axis0); | ||
dataSet.addSeries(series1,axis1); | ||||
dataSet.addSeries(series2,axis2); | ||||
|
r224 | |||
|
r439 | QSignalSpy spy0(&dataSet, SIGNAL(axisAdded(QChartAxis*,Domain*))); | ||
QSignalSpy spy1(&dataSet, SIGNAL(axisRemoved(QChartAxis*))); | ||||
QSignalSpy spy2(&dataSet, SIGNAL(seriesAdded(QSeries*,Domain*))); | ||||
QSignalSpy spy3(&dataSet, SIGNAL(seriesRemoved(QSeries*))); | ||||
|
r224 | |||
|
r439 | dataSet.removeSeries(series0); | ||
dataSet.removeSeries(series1); | ||||
dataSet.removeSeries(series2); | ||||
|
r224 | |||
|
r439 | QCOMPARE(spy0.count(), 0); | ||
QCOMPARE(spy1.count(), axisCount); | ||||
QCOMPARE(spy2.count(), 0); | ||||
QCOMPARE(spy3.count(), 3); | ||||
|
r224 | } | ||
|
r439 | void tst_ChartDataSet::removeAllSeries_data() | ||
|
r224 | { | ||
|
r771 | addSeries_data(); | ||
|
r224 | } | ||
|
r439 | void tst_ChartDataSet::removeAllSeries() | ||
|
r224 | { | ||
|
r439 | QFETCH(QLineSeries*, series0); | ||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0,axis0); | ||||
dataSet.addSeries(series1,axis1); | ||||
dataSet.addSeries(series2,axis2); | ||||
QSignalSpy spy0(&dataSet, SIGNAL(axisAdded(QChartAxis*,Domain*))); | ||||
QSignalSpy spy1(&dataSet, SIGNAL(axisRemoved(QChartAxis*))); | ||||
QSignalSpy spy2(&dataSet, SIGNAL(seriesAdded(QSeries*,Domain*))); | ||||
QSignalSpy spy3(&dataSet, SIGNAL(seriesRemoved(QSeries*))); | ||||
dataSet.removeAllSeries(); | ||||
QCOMPARE(spy0.count(), 0); | ||||
QCOMPARE(spy1.count(), axisCount); | ||||
QCOMPARE(spy2.count(), 0); | ||||
QCOMPARE(spy3.count(), 3); | ||||
|
r224 | } | ||
|
r439 | void tst_ChartDataSet::axisY_data() | ||
|
r224 | { | ||
|
r439 | QTest::addColumn<QChartAxis*>("axis0"); | ||
QTest::addColumn<QChartAxis*>("axis1"); | ||||
QTest::addColumn<QChartAxis*>("axis2"); | ||||
QTest::newRow("1 defualt, 2 optional") << (QChartAxis*)0 << new QChartAxis() << new QChartAxis(); | ||||
QTest::newRow("3 optional") << new QChartAxis() << new QChartAxis() << new QChartAxis(); | ||||
|
r224 | } | ||
|
r439 | void tst_ChartDataSet::axisY() | ||
|
r224 | { | ||
|
r439 | QFETCH(QChartAxis*, axis0); | ||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QChartAxis*, axis2); | ||||
|
r224 | |||
|
r439 | ChartDataSet dataSet; | ||
|
r224 | |||
|
r439 | QChartAxis* defaultAxisY = dataSet.axisY(); | ||
|
r224 | |||
|
r439 | QVERIFY2(defaultAxisY, "Missing axisY."); | ||
|
r224 | |||
|
r439 | QLineSeries* series0 = new QLineSeries(); | ||
dataSet.addSeries(series0,axis0); | ||||
|
r258 | |||
|
r439 | QLineSeries* series1 = new QLineSeries(); | ||
dataSet.addSeries(series1,axis1); | ||||
|
r258 | |||
|
r439 | QLineSeries* series2 = new QLineSeries(); | ||
dataSet.addSeries(series2,axis2); | ||||
|
r258 | |||
|
r439 | if(!axis0) axis0=defaultAxisY ; | ||
if(!axis1) axis1=defaultAxisY ; | ||||
if(!axis2) axis2=defaultAxisY ; | ||||
|
r258 | |||
|
r439 | QVERIFY(dataSet.axisY(series0) == axis0); | ||
QVERIFY(dataSet.axisY(series1) == axis1); | ||||
QVERIFY(dataSet.axisY(series2) == axis2); | ||||
|
r258 | |||
} | ||||
|
r910 | void tst_ChartDataSet::seriesCount_data() | ||
{ | ||||
addSeries_data(); | ||||
} | ||||
void tst_ChartDataSet::seriesCount() | ||||
{ | ||||
QFETCH(QLineSeries*, series0); | ||||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
Q_UNUSED(axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
QSignalSpy spy0(&dataSet, SIGNAL(axisAdded(QChartAxis*,Domain*))); | ||||
QSignalSpy spy1(&dataSet, SIGNAL(axisRemoved(QChartAxis*))); | ||||
QSignalSpy spy2(&dataSet, SIGNAL(seriesAdded(QSeries*,Domain*))); | ||||
QSignalSpy spy3(&dataSet, SIGNAL(seriesRemoved(QSeries*))); | ||||
QCOMPARE(dataSet.seriesCount(series0->type()),3); | ||||
QCOMPARE(spy0.count(), 0); | ||||
QCOMPARE(spy1.count(), 0); | ||||
QCOMPARE(spy2.count(), 0); | ||||
QCOMPARE(spy3.count(), 0); | ||||
} | ||||
|
r771 | void tst_ChartDataSet::seriesIndex_data() | ||
{ | ||||
addSeries_data(); | ||||
} | ||||
void tst_ChartDataSet::seriesIndex() | ||||
{ | ||||
|
r910 | //TODO: rewrite this series_index_data to match better | ||
|
r771 | QFETCH(QLineSeries*, series0); | ||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
Q_UNUSED(axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
QSignalSpy spy0(&dataSet, SIGNAL(axisAdded(QChartAxis*,Domain*))); | ||||
QSignalSpy spy1(&dataSet, SIGNAL(axisRemoved(QChartAxis*))); | ||||
QSignalSpy spy2(&dataSet, SIGNAL(seriesAdded(QSeries*,Domain*))); | ||||
QSignalSpy spy3(&dataSet, SIGNAL(seriesRemoved(QSeries*))); | ||||
|
r910 | QCOMPARE(dataSet.seriesIndex(series0),0); | ||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),2); | ||||
|
r771 | |||
QCOMPARE(spy0.count(), 0); | ||||
QCOMPARE(spy1.count(), 0); | ||||
QCOMPARE(spy2.count(), 0); | ||||
QCOMPARE(spy3.count(), 0); | ||||
|
r910 | |||
dataSet.removeSeries(series0); | ||||
dataSet.removeSeries(series1); | ||||
dataSet.removeSeries(series2); | ||||
QCOMPARE(dataSet.seriesIndex(series0),-1); | ||||
QCOMPARE(dataSet.seriesIndex(series1),-1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),-1); | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
QCOMPARE(dataSet.seriesIndex(series0),0); | ||||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),2); | ||||
dataSet.removeSeries(series1); | ||||
QCOMPARE(dataSet.seriesIndex(series0),0); | ||||
QCOMPARE(dataSet.seriesIndex(series1),-1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),2); | ||||
dataSet.addSeries(series1, axis1); | ||||
QCOMPARE(dataSet.seriesIndex(series0),0); | ||||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),2); | ||||
dataSet.removeSeries(series2); | ||||
QCOMPARE(dataSet.seriesIndex(series0),0); | ||||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),-1); | ||||
dataSet.removeSeries(series0); | ||||
QCOMPARE(dataSet.seriesIndex(series0),-1); | ||||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),-1); | ||||
dataSet.addSeries(series2); | ||||
QCOMPARE(dataSet.seriesIndex(series0),-1); | ||||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),0); | ||||
dataSet.addSeries(series0); | ||||
QCOMPARE(dataSet.seriesIndex(series0),2); | ||||
QCOMPARE(dataSet.seriesIndex(series1),1); | ||||
QCOMPARE(dataSet.seriesIndex(series2),0); | ||||
|
r771 | } | ||
void tst_ChartDataSet::domain_data() | ||||
{ | ||||
addSeries_data(); | ||||
} | ||||
void tst_ChartDataSet::domain() | ||||
{ | ||||
QFETCH(QLineSeries*, series0); | ||||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
Q_UNUSED(axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
QSignalSpy spy0(&dataSet, SIGNAL(axisAdded(QChartAxis*,Domain*))); | ||||
QSignalSpy spy1(&dataSet, SIGNAL(axisRemoved(QChartAxis*))); | ||||
QSignalSpy spy2(&dataSet, SIGNAL(seriesAdded(QSeries*,Domain*))); | ||||
QSignalSpy spy3(&dataSet, SIGNAL(seriesRemoved(QSeries*))); | ||||
QVERIFY(dataSet.domain(axis0)==dataSet.domain(series0)); | ||||
QVERIFY(dataSet.domain(axis1)==dataSet.domain(series1)); | ||||
QVERIFY(dataSet.domain(axis2)==dataSet.domain(series2)); | ||||
QCOMPARE(spy0.count(), 0); | ||||
QCOMPARE(spy1.count(), 0); | ||||
QCOMPARE(spy2.count(), 0); | ||||
QCOMPARE(spy3.count(), 0); | ||||
} | ||||
void tst_ChartDataSet::zoomInDomain_data() | ||||
{ | ||||
addSeries_data(); | ||||
} | ||||
void tst_ChartDataSet::zoomInDomain() | ||||
{ | ||||
QFETCH(QLineSeries*, series0); | ||||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
Q_UNUSED(axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
Domain* domain0 = dataSet.domain(series0); | ||||
Domain* domain1 = dataSet.domain(series1); | ||||
Domain* domain2 = dataSet.domain(series2); | ||||
QSignalSpy spy0(domain0, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
QSignalSpy spy1(domain1, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
QSignalSpy spy2(domain2, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
dataSet.zoomInDomain(QRect(0,0,100,100),QSize(1000,1000)); | ||||
QCOMPARE(spy0.count(), 1); | ||||
QCOMPARE(spy1.count(), 1); | ||||
QCOMPARE(spy2.count(), 1); | ||||
} | ||||
void tst_ChartDataSet::zoomOutDomain_data() | ||||
{ | ||||
addSeries_data(); | ||||
} | ||||
void tst_ChartDataSet::zoomOutDomain() | ||||
{ | ||||
QFETCH(QLineSeries*, series0); | ||||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
Q_UNUSED(axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
Domain* domain0 = dataSet.domain(series0); | ||||
Domain* domain1 = dataSet.domain(series1); | ||||
Domain* domain2 = dataSet.domain(series2); | ||||
QSignalSpy spy0(domain0, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
QSignalSpy spy1(domain1, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
QSignalSpy spy2(domain2, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
dataSet.zoomOutDomain(QRect(0,0,100,100),QSize(1000,1000)); | ||||
QCOMPARE(spy0.count(), 1); | ||||
QCOMPARE(spy1.count(), 1); | ||||
QCOMPARE(spy2.count(), 1); | ||||
} | ||||
void tst_ChartDataSet::scrollDomain_data() | ||||
{ | ||||
addSeries_data(); | ||||
} | ||||
void tst_ChartDataSet::scrollDomain() | ||||
{ | ||||
QFETCH(QLineSeries*, series0); | ||||
QFETCH(QChartAxis*, axis0); | ||||
QFETCH(QLineSeries*, series1); | ||||
QFETCH(QChartAxis*, axis1); | ||||
QFETCH(QLineSeries*, series2); | ||||
QFETCH(QChartAxis*, axis2); | ||||
QFETCH(int, axisCount); | ||||
Q_UNUSED(axisCount); | ||||
ChartDataSet dataSet; | ||||
dataSet.addSeries(series0, axis0); | ||||
dataSet.addSeries(series1, axis1); | ||||
dataSet.addSeries(series2, axis2); | ||||
Domain* domain0 = dataSet.domain(series0); | ||||
Domain* domain1 = dataSet.domain(series1); | ||||
Domain* domain2 = dataSet.domain(series2); | ||||
QSignalSpy spy0(domain0, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
QSignalSpy spy1(domain1, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
QSignalSpy spy2(domain2, SIGNAL(domainChanged(qreal,qreal,qreal,qreal))); | ||||
dataSet.scrollDomain(10,10,QSize(1000,1000)); | ||||
QCOMPARE(spy0.count(), 1); | ||||
QCOMPARE(spy1.count(), 1); | ||||
QCOMPARE(spy2.count(), 1); | ||||
} | ||||
|
r224 | QTEST_MAIN(tst_ChartDataSet) | ||
#include "tst_chartdataset.moc" | ||||