summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-03-27 21:56:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-28 17:17:32 +0100
commit5ec7c4eecf955090cc3bdd7a283aa5a291d12385 (patch)
tree817d8626dad27e0259522fe4b8436b19f12411f2 /offapi/com/sun/star
parentccc2e526d107a353469b5aad99e94544c07a10ee (diff)
fix comparison of UIObject's inside UITests
using == to compare them doesnt work, because we return a new one with every call to getTopFocusWindow and similar. So add a equals() method to the UNO interface to do the comparison. Change-Id: Ie909fe9b4e84fe07f4ca87bbebf65b56d3da8f78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165436 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'offapi/com/sun/star')
-rw-r--r--offapi/com/sun/star/ui/test/XUIObject.idl5
1 files changed, 5 insertions, 0 deletions
diff --git a/offapi/com/sun/star/ui/test/XUIObject.idl b/offapi/com/sun/star/ui/test/XUIObject.idl
index 8f5febffb17e..4f37b11568e1 100644
--- a/offapi/com/sun/star/ui/test/XUIObject.idl
+++ b/offapi/com/sun/star/ui/test/XUIObject.idl
@@ -22,6 +22,11 @@ interface XUIObject
sequence<string> getChildren();
string getHierarchy();
+
+ /** Return true if the other XUIObject represents the same underlying vcl widget.
+ This is necessary because we return a new XUIObject every time we call getChild.
+ */
+ boolean equals([in] XUIObject other);
};
}; }; }; }; };