Commit af026c3f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix testing when the test has qml syntax errors

Return failing instead of running the tests against the failed plasmoid.

Reviewed by David
parent fe5fac90
......@@ -42,6 +42,11 @@ void CoronaTestHelper::processContainment(Plasma::Containment* containment)
void CoronaTestHelper::processApplet(Plasma::Applet* applet)
PlasmaQuick::AppletQuickItem* obj = applet->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem*>();
if (applet->failedToLaunch()) {
qCWarning(PLASMASHELL) << "cannot test an applet with a launch error" << applet->launchErrorMessage();
auto testObject = obj->testItem();
if (!testObject) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment