~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk

« back to all changes in this revision

Viewing changes to tests/unit_x11/tst_components/tst_popover13.qml

  • Committer: CI Train Bot
  • Author(s): Christian Dywan, Zsombor Egri, Zoltán Balogh, Tim Peeters, Albert Astals Cid, Michael Sheldon, Benjamin Zeller
  • Date: 2015-12-17 17:13:49 UTC
  • mfrom: (1000.739.27 OTA9-landing-2015-12-16)
  • Revision ID: ci-train-bot@canonical.com-20151217171349-8xwclnhnx8v9oz4m
OTA9-landing-2015-12-16
Approved by: Zoltan Balogh

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
            popoverSpy.wait();
127
127
        }
128
128
 
 
129
        function test_dismiss_on_key() {
 
130
            mouseClick(pressMe, pressMe.width / 2, pressMe.height / 2);
 
131
            waitForRendering(pressMe);
 
132
            verify(popoverSpy.target !== null, "The popover did not open");
 
133
 
 
134
            keyClick(Qt.Key_Escape);
 
135
            popoverSpy.wait();
 
136
            // Dismiss via click to avoid false negatives on other cases
 
137
            mouseClick(main, 10, 10, Qt.LeftButton);
 
138
        }
 
139
 
129
140
        function test_popover_consumes_clicks_bug1488540_data() {
130
141
            return [
131
142
                { tag: 'Left-click', button: Qt.LeftButton },