Skip to content

Commit

Permalink
engine: fix physical test unit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Nov 14, 2018
1 parent 2647345 commit f701d78
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engine/test/qlcphysical/qlcphysical_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void QLCPhysical_Test::save()
buffer.open(QIODevice::WriteOnly | QIODevice::Text);
QXmlStreamWriter xmlWriter(&buffer);

bool bulb = false, dim = false, lens = false, focus = false, technical = false;
bool bulb = false, dim = false, lens = false, focus = false, layout = false, technical = false;

QVERIFY(p.saveXML(&xmlWriter) == true);

Expand Down Expand Up @@ -338,6 +338,12 @@ void QLCPhysical_Test::save()
QVERIFY(xmlReader.attributes().value("PanMax") == "520");
QVERIFY(xmlReader.attributes().value("TiltMax") == "270");
}
else if (xmlReader.name() == "Layout")
{
layout = true;
QVERIFY(xmlReader.attributes().value("Width") == "6");
QVERIFY(xmlReader.attributes().value("Height") == "3");
}
else if (xmlReader.name() == "Technical")
{
technical = true;
Expand All @@ -356,6 +362,7 @@ void QLCPhysical_Test::save()
QVERIFY(dim == true);
QVERIFY(lens == true);
QVERIFY(focus == true);
QVERIFY(layout == true);
QVERIFY(technical == true);
}

Expand Down

0 comments on commit f701d78

Please sign in to comment.