| 536 | } |
| 537 | |
| 538 | void TestBreakpointModel::testUpdateMarkType() |
| 539 | { |
| 540 | const auto [url, doc, b1] = setupPrimaryDocumentAndBreakpoint(); |
| 541 | RETURN_IF_TEST_FAILED(); |
| 542 | |
| 543 | // TEST: Change the mark type to pending. |
| 544 | b1->setState(Breakpoint::PendingState); |
| 545 | // Verify. |
| 546 | QCOMPARE(b1->state(), Breakpoint::PendingState); |
| 547 | VERIFY_BREAKPOINT(b1, 21, BreakpointModel::PendingBreakpointMark, documentMarks(doc), ); |
| 548 | |
| 549 | // TEST: Change the mark type to reached. |
| 550 | b1->setHitCount(1); |
| 551 | // Verify. |
| 552 | QCOMPARE(b1->hitCount(), 1); |
| 553 | VERIFY_BREAKPOINT(b1, 21, BreakpointModel::ReachedBreakpointMark, documentMarks(doc), ); |
| 554 | |
| 555 | // TEST: Change the mark type to disabled. |
| 556 | b1->setData(Breakpoint::EnableColumn, Qt::Unchecked); |
| 557 | // Verify. |
| 558 | QCOMPARE(b1->enabled(), false); |
| 559 | VERIFY_BREAKPOINT(b1, 21, BreakpointModel::DisabledBreakpointMark, documentMarks(doc), ); |
| 560 | } |
| 561 | |
| 562 | void TestBreakpointModel::testRemoveDocumentFile() |
| 563 | { |