~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-2106

« back to all changes in this revision

Viewing changes to tests/qmltests/Menus/tst_GroupedMessageMenu.qml

  • Committer: Bileto Bot
  • Date: 2016-10-24 11:32:00 UTC
  • mfrom: (146.3.110 slots-layout)
  • Revision ID: ci-train-bot@canonical.com-20161024113200-85dvkl9m1o0msi5i
* Menus: rewrite components using ListItemLayout's and SlotsLayout's
* Bump revision to 0.10, as per Components removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
        }
85
85
 
86
86
        function test_dismiss() {
 
87
            verify(findChild(messageMenu2, "removeAction") === undefined);
87
88
            mouseFlick(messageMenu2, messageMenu2.width / 2, messageMenu2.height / 2, messageMenu2.width, messageMenu2.height / 2, true, true, units.gu(1), 10);
 
89
            var removeAction = findChild(messageMenu2, "removeAction");
 
90
            verify(removeAction !== undefined);
 
91
            tryCompare(removeAction, "visible", true)
 
92
            mouseClick(removeAction, removeAction.width/2, removeAction.height/2)
88
93
            tryCompareFunction(function() { return signalSpyDismiss.count > 0; }, true);
89
94
        }
90
95
    }