Wizards: test default CheckBox values

Change-Id: I6d1de2c5a51e52d928f397a1abe659a76f15d086
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tim Jenssen
2017-10-30 15:28:40 +01:00
parent aa3bc64174
commit ee8580009d

View File

@@ -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");