| 471 | } |
| 472 | |
| 473 | void AxisTest::TestAddingHorizontalAxis() { |
| 474 | Project project; |
| 475 | auto* ws = new Worksheet(QStringLiteral("worksheet")); |
| 476 | QVERIFY(ws != nullptr); |
| 477 | project.addChild(ws); |
| 478 | |
| 479 | auto* p = new CartesianPlot(QStringLiteral("plot")); |
| 480 | QVERIFY(p != nullptr); |
| 481 | p->setType(CartesianPlot::Type::TwoAxes); // Otherwise no axes are created |
| 482 | ws->addChild(p); |
| 483 | |
| 484 | p->addHorizontalAxis(); // should not crash |
| 485 | } |
| 486 | |
| 487 | void AxisTest::TestAddingVerticalAxis() { |
| 488 | Project project; |
nothing calls this directly
no test coverage detected