| 792 | } |
| 793 | |
| 794 | void MultiRangeTest::shiftDown_SingleRange() { |
| 795 | LOAD_PROJECT |
| 796 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 797 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 798 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 799 | |
| 800 | vertAxisP1->setSelected(true); |
| 801 | p1->shiftDownY(0); |
| 802 | |
| 803 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 804 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 805 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.) |
| 806 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -200., 300.); // shift |
| 807 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 808 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 809 | |
| 810 | // check auto scale |
| 811 | // p1->enableAutoScale(Dimension::Y, 0); |
| 812 | p1->navigate(0, CartesianPlot::NavigationOperation::ScaleAutoY); |
| 813 | |
| 814 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 815 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 816 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 817 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 818 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 819 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 820 | |
| 821 | // retransform of vertAxisP1 is done, so the tickLabelValues change back |
| 822 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 823 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 824 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), refValuesAxis3); |
| 825 | } |
| 826 | |
| 827 | void MultiRangeTest::shiftUp_AllRanges() { |
| 828 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected