TextEditor: Move test creation closer to tested code

Change-Id: I0f132dddd405bf17161e0e032f9496a90cdc5ab9
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2024-01-19 17:48:18 +01:00
parent df9b802842
commit 610a110341
5 changed files with 70 additions and 54 deletions

View File

@@ -177,8 +177,8 @@ void TextEditorPlugin::initialize()
d->createStandardContextMenu();
#ifdef WITH_TESTS
addTest<CodeAssistTests>();
addTest<GenerigHighlighterTests>();
addTestCreator(createCodeAssistTests);
addTestCreator(createGenericHighlighterTests);
#endif
}