aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/jsonwizard
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2017-10-30 15:28:40 +0100
committerTim Jenssen <tim.jenssen@qt.io>2017-11-15 09:55:22 +0000
commitee8580009d1b1aa7d5f3bf4020f0ccee70b82ad0 (patch)
treefd1bd3e36514746e65a8b2279eede84da57d9152 /src/plugins/projectexplorer/jsonwizard
parentaa3bc64174617353ba8d55320d711c81b14b31d4 (diff)
Wizards: test default CheckBox values
Change-Id: I6d1de2c5a51e52d928f397a1abe659a76f15d086 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/jsonwizard')
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp
index 39b7480e31..bc8ec7ac92 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonwizard_test.cpp
@@ -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");