##// END OF EJS Templates
QValueAxis tests fixed on ARM
Marek Rosa -
r1943:03f8afda2429
parent child
Show More
@@ -170,9 +170,9 void tst_QValueAxis::max_animation()
170 void tst_QValueAxis::min_raw_data()
170 void tst_QValueAxis::min_raw_data()
171 {
171 {
172 QTest::addColumn<qreal>("min");
172 QTest::addColumn<qreal>("min");
173 QTest::newRow("-1.0") << -1.0;
173 QTest::newRow("-1.0") << (qreal)-1.0;
174 QTest::newRow("-50.0") << -50.0;
174 QTest::newRow("-50.0") << (qreal)-50.0;
175 QTest::newRow("-101.0") << -101.0;
175 QTest::newRow("-101.0") << (qreal)-101.0;
176 }
176 }
177
177
178 void tst_QValueAxis::min_raw()
178 void tst_QValueAxis::min_raw()
@@ -224,12 +224,12 void tst_QValueAxis::niceNumbersEnabled_data()
224 QTest::addColumn<qreal>("expectedMin");
224 QTest::addColumn<qreal>("expectedMin");
225 QTest::addColumn<qreal>("expectedMax");
225 QTest::addColumn<qreal>("expectedMax");
226 QTest::addColumn<int>("expectedTicks");
226 QTest::addColumn<int>("expectedTicks");
227 QTest::newRow("true 0.1 , 99.0 , 5") << true << 0.1 << 99.0 << 5 << 0.0 << 100.0 << 6;
227 QTest::newRow("true 0.1 , 99.0 , 5") << true << (qreal)0.1 << (qreal)99.0 << 5 << (qreal)0.0 << (qreal)100.0 << 6;
228 QTest::newRow("true 1 , 10.0 , 5") << true << 1.0 << 10.0 << 5 << 0.0 << 10.0 << 6;
228 QTest::newRow("true 1 , 10.0 , 5") << true << (qreal)1.0 << (qreal)10.0 << 5 << (qreal)0.0 << (qreal)10.0 << 6;
229 QTest::newRow("true 0.1 , 6.6 , 5") << true << 0.1 << 6.6 << 5 << 0.0 << 8.0 << 5;
229 QTest::newRow("true 0.1 , 6.6 , 5") << true << (qreal)0.1 << (qreal)6.6 << 5 << (qreal)0.0 << (qreal)8.0 << 5;
230 QTest::newRow("false 0.1 , 6.6 , 5") << false << 0.1 << 6.6 << 5 << 0.1 << 6.6 << 5;
230 QTest::newRow("false 0.1 , 6.6 , 5") << false << (qreal)0.1 << (qreal)6.6 << 5 << (qreal)0.1 << (qreal)6.6 << 5;
231 QTest::newRow("true 0.1, 99, 5") << true << 0.1 << 99.0 << 5 << 0.0 << 100.0 << 6;
231 QTest::newRow("true 0.1, 99, 5") << true << (qreal)0.1 << (qreal)99.0 << 5 << (qreal)0.0 << (qreal)100.0 << 6;
232 QTest::newRow("true 5, 93.5 , 5") << true << 5.0 << 93.5 << 5 << 0.0 << 100.0 << 6;
232 QTest::newRow("true 5, 93.5 , 5") << true << (qreal)5.0 << (qreal)93.5 << 5 << (qreal)0.0 << (qreal)100.0 << 6;
233 }
233 }
234
234
235 void tst_QValueAxis::niceNumbersEnabled()
235 void tst_QValueAxis::niceNumbersEnabled()
@@ -272,9 +272,9 void tst_QValueAxis::range_raw_data()
272 {
272 {
273 QTest::addColumn<qreal>("min");
273 QTest::addColumn<qreal>("min");
274 QTest::addColumn<qreal>("max");
274 QTest::addColumn<qreal>("max");
275 QTest::newRow("1.0 - 101.0") << -1.0 << 101.0;
275 QTest::newRow("1.0 - 101.0") << (qreal)-1.0 << (qreal)101.0;
276 QTest::newRow("25.0 - 75.0") << 25.0 << 75.0;
276 QTest::newRow("25.0 - 75.0") << (qreal)25.0 << (qreal)75.0;
277 QTest::newRow("101.0") << 40.0 << 60.0;
277 QTest::newRow("101.0") << (qreal)40.0 << (qreal)60.0;
278 }
278 }
279
279
280 void tst_QValueAxis::range_raw()
280 void tst_QValueAxis::range_raw()
@@ -356,9 +356,9 void tst_QValueAxis::noautoscale_data()
356 {
356 {
357 QTest::addColumn<qreal>("min");
357 QTest::addColumn<qreal>("min");
358 QTest::addColumn<qreal>("max");
358 QTest::addColumn<qreal>("max");
359 QTest::newRow("1.0 - 101.0") << -1.0 << 101.0;
359 QTest::newRow("1.0 - 101.0") << (qreal)-1.0 << (qreal)101.0;
360 QTest::newRow("25.0 - 75.0") << 25.0 << 75.0;
360 QTest::newRow("25.0 - 75.0") << (qreal)25.0 << (qreal)75.0;
361 QTest::newRow("101.0") << 40.0 << 60.0;
361 QTest::newRow("101.0") << (qreal)40.0 << (qreal)60.0;
362 }
362 }
363
363
364 void tst_QValueAxis::noautoscale()
364 void tst_QValueAxis::noautoscale()
General Comments 0
You need to be logged in to leave comments. Login now