| 131 | } |
| 132 | |
| 133 | TestEngine *TestContext::getEngine() |
| 134 | { |
| 135 | qputenv("RECURSION", QByteArrayLiteral("50")); |
| 136 | auto app = new TestApplication; |
| 137 | auto engine = new TestEngine(app, QVariantMap()); |
| 138 | new ContextGetActionsTest(app); |
| 139 | new ContextTest_NS(app); |
| 140 | if (!engine->init()) { |
| 141 | return nullptr; |
| 142 | } |
| 143 | return engine; |
| 144 | } |
| 145 | |
| 146 | void TestContext::cleanupTestCase() |
| 147 | { |