| 575 | } |
| 576 | |
| 577 | void MultiRangeTest::zoomOutY_SingleRange() { |
| 578 | LOAD_PROJECT |
| 579 | |
| 580 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 581 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 582 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 583 | vertAxisP1->setSelected(true); |
| 584 | p1->zoomOutY(0); |
| 585 | |
| 586 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 587 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 588 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 589 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -300., 300.); // zoom |
| 590 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 591 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 592 | |
| 593 | // check auto scale |
| 594 | p1->navigate(0, CartesianPlot::NavigationOperation::ScaleAutoY); |
| 595 | |
| 596 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 597 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 598 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 599 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 600 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 601 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 602 | |
| 603 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 604 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 605 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), refValuesAxis3); // on third axis there is no autoscale, because it uses a different range |
| 606 | } |
| 607 | |
| 608 | void MultiRangeTest::zoomOutY_AllRanges() { |
| 609 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected