Using UbuntuTestCase as a root item hides its contents
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
If you run a test qml app with launcher, and the root item is an UbuntuTestCase, the contents will not show. This is not a problem with tests that have an Item as root and the UbuntuTestCase embedded inside that, like this example:
import QtQuick 2.2
import Ubuntu.Components 1.1
import Ubuntu.Test 1.0
//UbuntuTestCase { // use this instead of Item, and the contents shows blank
Item {
width: units.gu(50)
height: units.gu(80)
MainView {
Page {
title: "Test"
}
}
}
UbuntuTestCase {
// write your tests here
}
}
However, if you remove the root Item and replace it by the commented-out UbuntuTestCase (the UbuntuTestCase that is embedded can then be removed, but it makes no difference in this case), then none of the contents (the MainView with a Page and Rectangle) will be visible in the window opened by launcher.
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → Critical |
assignee: | nobody → Christian Dywan (kalikiana) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Critical → Medium |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | Christian Dywan (kalikiana) → nobody |
importance: | Medium → Wishlist |
Status changed to 'Confirmed' because the bug affects multiple users.