Ubuntu Pastebin

Paste from Tim Peeters at Wed, 2 Mar 2016 15:35:04 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
        SignalSpy {
            id: movingChangedSpy
            signalName: "contentXChanged"
        }

        function test_click_disabled_scroll_button_bug1551356() {
            var listView = findChild(enabledSections, "sections_listview");
            var icon = findChild(enabledSections, "leftScrollIcon");
            movingChangedSpy.target = listView;
            compare(listView.contentX, 0.0, "listView is not at the leftmost position initially.");
            mouseClick(icon, icon.width/2, icon.height/2);
            wait(200); // give the listview ample time to scroll
            compare(movingChangedSpy.count, 0,
                    "listView moved when clicking disabled scroll button.");
            movingChangedSpy.clear();
            movingChangedSpy.target = null;
        }
Download as text