Integrates unittests for lts/services/s almost successfull into final validation phase
This commit is contained in:
46 files changed
+307
-108
No files matched your search
@@ -90,9 +90,9 @@ TEST(LtsWidgetsQt6, QComboBoxCurrentTextChangedSignal)
|
||||
ensureAppInitialized();
|
||||
|
||||
QComboBox comboBox;
|
||||
comboBox.addItem("Option1");
|
||||
comboBox.addItem("Option2");
|
||||
comboBox.addItem("Option3");
|
||||
comboBox.addItem(QStringLiteral("Option1"));
|
||||
comboBox.addItem(QStringLiteral("Option2"));
|
||||
comboBox.addItem(QStringLiteral("Option3"));
|
||||
|
||||
bool signalReceived = false;
|
||||
QString receivedText;
|
||||
@@ -105,7 +105,7 @@ TEST(LtsWidgetsQt6, QComboBoxCurrentTextChangedSignal)
|
||||
comboBox.setCurrentIndex(1);
|
||||
|
||||
EXPECT_TRUE(signalReceived);
|
||||
EXPECT_EQ(receivedText, "Option2");
|
||||
EXPECT_EQ(receivedText, QStringLiteral("Option2"));
|
||||
}
|
||||
|
||||
// Test 5: QComboBox activated signal with int parameter (Qt6)
|
||||
@@ -115,9 +115,9 @@ TEST(LtsWidgetsQt6, QComboBoxActivatedIntSignal)
|
||||
ensureAppInitialized();
|
||||
|
||||
QComboBox comboBox;
|
||||
comboBox.addItem("First");
|
||||
comboBox.addItem("Second");
|
||||
comboBox.addItem("Third");
|
||||
comboBox.addItem(QStringLiteral("First"));
|
||||
comboBox.addItem(QStringLiteral("Second"));
|
||||
comboBox.addItem(QStringLiteral("Third"));
|
||||
|
||||
bool signalReceived = false;
|
||||
int receivedIndex = -1;
|
||||
@@ -145,7 +145,7 @@ TEST(LtsWidgetsQt6, QStyleOptionInitFrom)
|
||||
{
|
||||
ensureAppInitialized();
|
||||
|
||||
QPushButton button("Test");
|
||||
QPushButton button(QStringLiteral("Test"));
|
||||
button.resize(100, 30);
|
||||
button.setEnabled(true);
|
||||
|
||||
@@ -163,8 +163,8 @@ TEST(LtsWidgetsQt6, QStyleOptionInitFromMultipleWidgets)
|
||||
{
|
||||
ensureAppInitialized();
|
||||
|
||||
QPushButton button1("Btn1");
|
||||
QPushButton button2("Btn2");
|
||||
QPushButton button1(QStringLiteral("Btn1"));
|
||||
QPushButton button2(QStringLiteral("Btn2"));
|
||||
button1.setEnabled(true);
|
||||
button2.setEnabled(false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user