on xenial help sign in
Added test for undefined state change
cca14a0Nick Dedekind
tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml+3
@@ -214,6 +214,9 @@ Item {
214
214
215 menuData.actionState = data.value2;
215 menuData.actionState = data.value2;
216 compare(loader.item.value, data.value2, "Value does not match new data");
216 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");
217 }
220 }
218
221
219 function test_create_buttonMenu_data() {
222 function test_create_buttonMenu_data() {