aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2010-12-10 21:40:39 +0200
committerPekka Vuorela <pekka.ta.vuorela@nokia.com>2010-12-17 12:41:43 +0200
commit6ea38b6964cf9d6ca0cc2f20bc8193fc08dd1e92 (patch)
tree6a3bfaf8d91730ded64d22bce18845cd00988b89 /tests
parent6d1c9ec4c6476dccf524ad251cb46d7129e84d27 (diff)
Changes: toolbar attribute change not to emit unnecessary signals
RevBy: Michael Hasselmann Details: no need to emit toolbarItemAttributeChanged if value was unchanged. Further fixes NB#208276.
Diffstat (limited to 'tests')
-rw-r--r--tests/ut_minputmethodstate/ut_minputmethodstate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ut_minputmethodstate/ut_minputmethodstate.cpp b/tests/ut_minputmethodstate/ut_minputmethodstate.cpp
index e514b02c..65841e90 100644
--- a/tests/ut_minputmethodstate/ut_minputmethodstate.cpp
+++ b/tests/ut_minputmethodstate/ut_minputmethodstate.cpp
@@ -104,6 +104,11 @@ void Ut_MInputMethodState::testToolbars()
// make a modification
state->setToolbarItemAttribute(id, "itemName", "attributeName", 42);
QCOMPARE(changeSpy.count(), 1);
+
+ // check that setting value doesn't make signals if value does not change
+ state->setToolbarItemAttribute(id, "itemName", "attributeName", 42);
+ QCOMPARE(changeSpy.count(), 1);
+
changeSpy.clear();
// another toolbar with one item containing two attributes, and second containing one