~jonas-drange/ubuntu-system-settings/filepicker

« back to all changes in this revision

Viewing changes to tests/plugins/system-update/tst_systemupdate_entrycomponent.qml

  • Committer: Jonas G. Drange
  • Date: 2017-01-24 14:03:55 UTC
  • mfrom: (1673.1.84 ubuntu-system-settings)
  • Revision ID: jonas.drange@canonical.com-20170124140355-1srbozy3aczq1mct
syncs with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
        EntryComponent {
38
38
            property var model
 
39
            property bool showAllUI: false
39
40
            width: testRoot.width
40
41
        }
41
42
    }
69
70
 
70
71
        function test_clickUpdates() {
71
72
            UpdateManager.model.mockAddUpdate("app" + 0, 0, Update.KindClick);
72
 
            tryCompare(instance, "height", units.gu(7), 5000, "item did not have the correct height when we had click updates");
 
73
            tryCompare(instance, "height", units.gu(6.5), 5000, "item did not have the correct height when we had click updates");
73
74
        }
74
75
    }
75
76
 
97
98
        }
98
99
 
99
100
        function test_visibleWhenImageUpdate() {
100
 
            tryCompare(instance, "height", units.gu(7), 5000, "item did not have the correct height when we had image updates");
 
101
            tryCompare(instance, "height", units.gu(6.5), 5000, "item did not have the correct height when we had image updates");
101
102
        }
102
103
 
103
104
        function test_clickUpdates() {
104
105
            UpdateManager.model.mockAddUpdate("app" + 0, 0, Update.KindClick);
105
 
            tryCompare(instance, "height", units.gu(7), 5000, "item did not have the correct height when we had all types of updates");
 
106
            tryCompare(instance, "height", units.gu(6.5), 5000, "item did not have the correct height when we had all types of updates");
106
107
        }
107
108
    }
108
109
}