~tpeeters/ubuntu-ui-toolkit/qt56fixes1

« back to all changes in this revision

Viewing changes to tests/unit/components/tst_activityindicator.qml

  • Committer: Tarmac
  • Author(s): Florian Boucault
  • Date: 2016-08-23 15:31:45 UTC
  • mfrom: (2077.1.3 fix_async_width_height)
  • Revision ID: tarmac-20160823153145-7qt300qtfdmueofl
ActivityIndicatorStyle: set default size on component instead of style.

Approved by ubuntu-sdk-build-bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        compare(activityIndicator.running,true,"can set/get running")
28
28
     }
29
29
 
 
30
     function test_size() {
 
31
        compare(activityIndicator.implicitWidth, units.gu(3), "Default implicitWidth is 3GUs")
 
32
        compare(activityIndicator.implicitHeight, units.gu(3), "Default implicitHeight is 3GUs")
 
33
        compare(activityIndicator.width, units.gu(3), "Default width is 3GUs")
 
34
        compare(activityIndicator.height, units.gu(3), "Default height is 3GUs")
 
35
     }
 
36
 
30
37
     ActivityIndicator {
31
38
         id: activityIndicator
32
39
     }