Added test case and setting Test configuration
This commit is contained in:
1 parent
f815271486
commit
a86f9b5bac
48 files changed
+423
-168
No files matched your search
@@ -27,17 +27,14 @@ TEST(PassiveEventContainerTest, CreateContainer)
|
||||
|
||||
TEST(PassiveEventContainerTest, SetEventList)
|
||||
{
|
||||
Event event1(1, 100, 0, 1000, -1, -1, -1, QStringList() << QStringLiteral("path1"), nullptr, Qt::red, QJsonObject(), -1, LtsUtils::QPoint3D());
|
||||
Event event2(2, 100, 500, 1500, -1, -1, -1, QStringList() << QStringLiteral("path2"), nullptr, Qt::blue, QJsonObject(), -1, LtsUtils::QPoint3D());
|
||||
|
||||
PassiveEventContainer container(false);
|
||||
|
||||
Event event1(1, 100, 0, 1000, -1, -1, -1, QStringList() << "path1", nullptr, Qt::red, QJsonObject(), -1, LtsUtils::QPoint3D());
|
||||
Event event2(2, 100, 500, 1500, -1, -1, -1, QStringList() << "path2", nullptr, Qt::blue, QJsonObject(), -1, LtsUtils::QPoint3D());
|
||||
|
||||
EventGraphic graphic1(&event1);
|
||||
EventGraphic graphic2(&event2);
|
||||
|
||||
EventGraphicList list;
|
||||
list.append(&graphic1);
|
||||
list.append(&graphic2);
|
||||
list.append(new EventGraphic(&event1));
|
||||
list.append(new EventGraphic(&event2));
|
||||
|
||||
container.setEventList(list);
|
||||
|
||||
@@ -46,13 +43,12 @@ TEST(PassiveEventContainerTest, SetEventList)
|
||||
|
||||
TEST(PassiveEventContainerTest, PaintDoesNotCrash)
|
||||
{
|
||||
Event event1(1, 100, 0, 1000, -1, -1, -1, QStringList() << QStringLiteral("path1"), nullptr, Qt::red, QJsonObject(), -1, LtsUtils::QPoint3D());
|
||||
|
||||
PassiveEventContainer container(false);
|
||||
|
||||
Event event1(1, 100, 0, 1000, -1, -1, -1, QStringList() << "path1", nullptr, Qt::red, QJsonObject(), -1, LtsUtils::QPoint3D());
|
||||
EventGraphic graphic1(&event1);
|
||||
|
||||
EventGraphicList list;
|
||||
list.append(&graphic1);
|
||||
list.append(new EventGraphic(&event1));
|
||||
container.setEventList(list);
|
||||
|
||||
EventTools::setValues(0, 1000, 0, 500);
|
||||
|
||||
Reference in new issue
Block a user