~zsombi/ubuntu-ui-toolkit/combobutton

« back to all changes in this revision

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

  • Committer: Zsombor Egri
  • Date: 2014-03-25 07:23:36 UTC
  • mfrom: (938.13.15 ubuntu-ui-toolkit)
  • Revision ID: zsombor.egri@canonical.com-20140325072336-ldp9ag50j5ermh7j
trunk merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
            ubuntuListView.expandedIndex = index;
83
83
            var targetHeight = Math.min(item.expandedHeight, ubuntuListView.height - item.collapsedHeight);
84
84
            tryCompare(item, "height", targetHeight);
 
85
            waitForRendering(ubuntuListView)
85
86
        }
86
87
 
87
88
        function collapse() {
92
93
            var expandedItem = findChild(ubuntuListView, "expandable" + ubuntuListView.expandedIndex);
93
94
            ubuntuListView.expandedIndex = -1;
94
95
            tryCompare(expandedItem, "height", expandedItem.collapsedHeight);
 
96
            waitForRendering(ubuntuListView);
95
97
        }
96
98
 
97
99
        function test_expandedItem() {