| 669 | } |
| 670 | |
| 671 | void MultiRangeTest::shiftRight_SingleRange() { |
| 672 | LOAD_PROJECT |
| 673 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 674 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 675 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 676 | horAxisP1->setSelected(true); |
| 677 | p1->shiftRightX(0); |
| 678 | |
| 679 | CHECK_RANGE(p1, sinCurve, Dimension::X, -0.1, 0.9); // shift |
| 680 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 681 | CHECK_RANGE(p1, tanCurve, Dimension::X, -0.1, 0.9); // shift |
| 682 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 683 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 684 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 685 | |
| 686 | // check auto scale |
| 687 | p1->navigate(0, CartesianPlot::NavigationOperation::ScaleAutoX); |
| 688 | |
| 689 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 690 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 691 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 692 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 693 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 694 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 695 | |
| 696 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 697 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 698 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), refValuesAxis3); // on third axis there is no autoscale |
| 699 | } |
| 700 | |
| 701 | void MultiRangeTest::shiftLeft_AllRanges() { |
| 702 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected