aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmldom
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@qt.io>2022-04-28 10:30:28 +0200
committerFawzi Mohamed <fawzi.mohamed@qt.io>2022-05-19 15:47:45 +0200
commitb42b2e2ab84030f20b90685358cb7e3db4165ca2 (patch)
treeb496a22091a77ba13fa4b354f12234b08fa6678b /tests/auto/qmldom
parentf07c62d4879c34136da55972f59a46b2508aafcc (diff)
qmldom: fix filterUp of two owners
finding the qmlObject from a script value (owner) did fail due to a bug in filterUp. Change-Id: I924ae5cb5db0548332594a0b36081da620d661a3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qmldom')
-rw-r--r--tests/auto/qmldom/domitem/tst_qmldomitem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qmldom/domitem/tst_qmldomitem.h b/tests/auto/qmldom/domitem/tst_qmldomitem.h
index 8539617bb0..749b2d124c 100644
--- a/tests/auto/qmldom/domitem/tst_qmldomitem.h
+++ b/tests/auto/qmldom/domitem/tst_qmldomitem.h
@@ -473,6 +473,7 @@ private slots:
{
DomItem width = obj1.field(Fields::bindings).key(QLatin1String("width")).index(0);
+ QCOMPARE(width.field(Fields::value).qmlObject(), obj1);
DomItem w = obj1.bindings().key(QLatin1String("width"));
QVERIFY(w.indexes() > 0);
QCOMPARE(w.indexes(), 1);