[Libreoffice-commits] core.git: vcl/source

Saurav Chirania saurav.chir at gmail.com
Sun Jun 24 20:24:54 UTC 2018


 vcl/source/uitest/logger.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 641e42859e7f9c392aaf81dc8ca69f6c4fbc1b1b
Author: Saurav Chirania <saurav.chir at gmail.com>
Date:   Tue Jun 12 14:48:41 2018 +0530

    uitest logger: print parent when logging keys
    
    Change-Id: I130f266016dc51dab5e4d1395fe579ca21a1b835
    Reviewed-on: https://gerrit.libreoffice.org/55675
    Tested-by: Jenkins
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index e9a18df9b400..69620b0df610 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -159,8 +159,10 @@ void UITestLogger::logKeyInput(VclPtr<vcl::Window> const & xUIElement, const Key
 
     std::unique_ptr<UIObject> pUIObject = xUIElement->GetUITestFactory()(xUIElement.get());
 
+    OUString parent_id = xUIElement->GetParent()->get_id();
+
     OUString aContent = pUIObject->get_type() + " Action:TYPE Id:" +
-            rID + " Parent: UNKNOWN "+ aKeyCode;
+            rID + " Parent:"+ parent_id +" " + aKeyCode;
     maStream.WriteLine(OUStringToOString(aContent, RTL_TEXTENCODING_UTF8));
 }
 


More information about the Libreoffice-commits mailing list