@@ -30,6 +30,20 @@ TestCase {
30 id: testObject
30 id: testObject
33 function test_direct() {
47 function test_direct() {
34 compare(Util.isInstanceOf(rect, "QQuickRectangle"), true, "rect should be an instance of QQuickRectangle");
48 compare(Util.isInstanceOf(rect, "QQuickRectangle"), true, "rect should be an instance of QQuickRectangle");
35 compare(Util.isInstanceOf(Util, "TestUtil"), true, "Util should be an instance of TestUtil");
49 compare(Util.isInstanceOf(Util, "TestUtil"), true, "Util should be an instance of TestUtil");
@@ -52,4 +66,21 @@ TestCase {
52 function test_undefined() {
66 function test_undefined() {
53 compare(Util.isInstanceOf(undefined, "QObject"), false, "passing undefined should fail");
67 compare(Util.isInstanceOf(undefined, "QObject"), false, "passing undefined should fail");
70+ function test_behavior_waiting() {
72+ verify(item.height != 100);
75+ verify(item.width != 100);
77+ var date1 = new Date();
78+ Util.waitForBehaviors(item);
79+ var date2 = new Date();
81+ compare(item.height, 100);
82+ compare(item.width, 100);
84+ verify(date2 - date1 >= 500);