##// END OF EJS Templates
tst_qpieseries: the xxxAnimated tests did not test anything (oops)
Jani Honkonen -
r1797:380343091972
parent child
Show More
@@ -78,6 +78,9 void tst_qpieseries::init()
78 {
78 {
79 m_view = new QChartView();
79 m_view = new QChartView();
80 m_series = new QPieSeries(m_view);
80 m_series = new QPieSeries(m_view);
81 m_view->show();
82 QTest::qWaitForWindowShown(m_view);
83
81 }
84 }
82
85
83 void tst_qpieseries::cleanup()
86 void tst_qpieseries::cleanup()
@@ -234,6 +237,7 void tst_qpieseries::append()
234 void tst_qpieseries::appendAnimated()
237 void tst_qpieseries::appendAnimated()
235 {
238 {
236 m_view->chart()->setAnimationOptions(QChart::AllAnimations);
239 m_view->chart()->setAnimationOptions(QChart::AllAnimations);
240 append();
237 }
241 }
238
242
239 void tst_qpieseries::insert()
243 void tst_qpieseries::insert()
@@ -291,6 +295,7 void tst_qpieseries::insert()
291 void tst_qpieseries::insertAnimated()
295 void tst_qpieseries::insertAnimated()
292 {
296 {
293 m_view->chart()->setAnimationOptions(QChart::AllAnimations);
297 m_view->chart()->setAnimationOptions(QChart::AllAnimations);
298 insert();
294 }
299 }
295
300
296 void tst_qpieseries::remove()
301 void tst_qpieseries::remove()
@@ -340,6 +345,7 void tst_qpieseries::remove()
340 void tst_qpieseries::removeAnimated()
345 void tst_qpieseries::removeAnimated()
341 {
346 {
342 m_view->chart()->setAnimationOptions(QChart::AllAnimations);
347 m_view->chart()->setAnimationOptions(QChart::AllAnimations);
348 remove();
343 }
349 }
344
350
345 void tst_qpieseries::calculatedValues()
351 void tst_qpieseries::calculatedValues()
General Comments 0
You need to be logged in to leave comments. Login now