33
37
compare(Util.isInstanceOf(rect, "QQuickRectangle"), true, "rect should be an instance of QQuickRectangle");
34
38
compare(Util.isInstanceOf(util, "TestUtil"), true, "Util should be an instance of TestUtil");
39
compare(Util.isInstanceOf(testObject, "MockObjectForInstanceOfTestChild"), true, "testObject should be an instance of MockObjectForInstanceOfTestChild");
37
42
function test_inherited() {
38
43
compare(Util.isInstanceOf(rect, "QQuickItem"), true, "rect should be an instance of QQuickItem");
39
44
compare(Util.isInstanceOf(rect, "QObject"), true, "rect should be an instance of QObject");
40
45
compare(Util.isInstanceOf(util, "QObject"), true, "Util should be an instance of QObject");
46
compare(Util.isInstanceOf(testObject, "MockObjectForInstanceOfTest"), true, "testObject should be an instance of MockObjectForInstanceOfTest");
47
compare(Util.isInstanceOf(testObject, "QQuickRectangle"), true, "testObject should be an instance of QQuickRectangle");
43
50
function test_negative() {