MCPcopy Create free account
hub / github.com/KDE/kdevelop / viewDeletion

Method viewDeletion

kdevplatform/sublime/tests/test_document.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void TestDocument::viewDeletion()
103{
104 Controller controller;
105 Document *doc = new ToolDocument(QStringLiteral("tool"), &controller, new SimpleToolWidgetFactory<QTextEdit>(QStringLiteral("tool")));
106
107 View *view = doc->createView();
108 QVERIFY(view->initializeWidget(nullptr));
109 QCOMPARE(doc->views().count(), 1);
110
111 delete view;
112 QCOMPARE(doc->views().count(), 0);
113}
114
115QTEST_MAIN(TestDocument)
116

Callers

nothing calls this directly

Calls 4

createViewMethod · 0.45
initializeWidgetMethod · 0.45
countMethod · 0.45
viewsMethod · 0.45

Tested by

no test coverage detected