~zsombi/ubuntu-ui-toolkit/fixThemingFallback

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Andrea Bernabei
  • Date: 2015-10-01 14:18:09 UTC
  • mfrom: (1662.1.3 staging)
  • Revision ID: tarmac-20151001141809-rtt8woyiacfl35jf
Remove REVISION 1 from textSize property of UCLabel and add test in ListItemLayout tests to avoid breaking textSize initialization again. Fixes: https://bugs.launchpad.net/bugs/1501673.

Approved by PS Jenkins bot, Zsombor Egri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
            property var trailingSlots: [layoutTestDefaultSlotsAttachedProps_trailing1]
280
280
            Item { id: layoutTestDefaultSlotsAttachedProps_trailing1 }
281
281
        }
 
282
        //UCLabel initially had REVISION 1 around textSize Q_PROPERTY
 
283
        //That breaks initialization of textSize from QML when done on
 
284
        //the UCLabels we created from C++! (changing textSize works from JS, fyi)
 
285
        //This component makes sure we don't break this usecase again in the future
 
286
        ListItemLayout {
 
287
            id: layoutTestCustomTextSizeInitializationFromQml
 
288
            title.text: "Hello"
 
289
            title.textSize: Label.XLarge
 
290
        }
282
291
    }
283
292
 
284
293
    UbuntuTestCase {