forked from qt-creator/qt-creator
Wizards: test default CheckBox values
Change-Id: I6d1de2c5a51e52d928f397a1abe659a76f15d086 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -173,8 +173,13 @@ void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsCheckBox()
|
||||
Utils::Wizard *wizard = factory->runWizard(QString(), &parent, Core::Id(), QVariantMap());
|
||||
|
||||
QVERIFY(!findCheckBox(wizard, "Default")->isChecked());
|
||||
QCOMPARE(wizard->field("DefaultCheckBox"), QVariant(false));
|
||||
|
||||
QVERIFY(findCheckBox(wizard, "Checked")->isChecked());
|
||||
QCOMPARE(wizard->field("CheckedCheckBox"), QVariant(true));
|
||||
|
||||
QVERIFY(!findCheckBox(wizard, "UnChecked")->isChecked());
|
||||
QCOMPARE(wizard->field("UnCheckedCheckBox"), QVariant(false));
|
||||
|
||||
QVERIFY(!findCheckBox(wizard, "SpecialValueUnChecked")->isChecked());
|
||||
QCOMPARE(qPrintable(wizard->field("SpecialValueUnCheckedCheckBox").toString()), "SpecialUnCheckedValue");
|
||||
|
||||
Reference in New Issue
Block a user