on xenial help sign in
Added test for undefined state change
commitcca14a0b8ae687abfc07196a36d14e0f8225cbf8 authorNick Dedekind <nicholas.dedekind@gmail.com> dateTue 18 Mar 2014, 14:47 (13 years ago) parentc92d42a
1 file changed+3
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+3
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+3
@@ -214,6 +214,9 @@ Item {
214214
215215 menuData.actionState = data.value2;
216216 compare(loader.item.value, data.value2, "Value does not match new data");
217+
218+ menuData.actionState = undefined;
219+ compare(loader.item.value, data.value2, "Undefined state should not update slider value");
217220 }
218221
219222 function test_create_buttonMenu_data() {