3
import Ubuntu.Components 0.1
4
import "../../components"
6
// See more details @ http://qt-project.org/doc/qt-5.0/qtquick/qml-testcase.html
18
name: "HelloComponent"
21
console.debug(">> init");
22
compare("",objectUnderTest.text,"text was not empty on init");
23
console.debug("<< init");
27
console.debug(">> cleanup");
28
console.debug("<< cleanup");
31
function initTestCase() {
32
console.debug(">> initTestCase");
33
console.debug("<< initTestCase");
36
function cleanupTestCase() {
37
console.debug(">> cleanupTestCase");
38
console.debug("<< cleanupTestCase");
41
function test_canReadAndWriteText() {
42
var expected = "Hello World";
44
objectUnderTest.text = expected;
46
compare(expected,objectUnderTest.text,"expected did not equal result");