5
// See more details at https://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Test.UbuntuTestCase
7
// Execute these tests with:
27
var label = findChild(main, "label");
28
// See the compare method documentation at https://developer.ubuntu.com/api/qml/sdk-14.10/QtTest.TestCase/#compare-method
29
compare("Hello..", label.text);
32
function test_clickButtonMustChangeLabel() {
33
var button = findChild(main, "button");
34
var buttonCenter = centerOf(button)
35
mouseClick(button, buttonCenter.x, buttonCenter.y);
36
var label = findChild(main, "label");
37
// See the tryCompare method documentation at https://developer.ubuntu.com/api/qml/sdk-14.10/QtTest.TestCase/#tryCompare-method
38
tryCompare(label, "text", "..world!", 1);