diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-21 00:12:23 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-21 00:11:08 +0000 |
commit | b0026125ab60d98cf6705e5d89e2f87575b5d337 (patch) | |
tree | 60038efb8a95ddc3c575ee8f1d34238840feecf2 /vcl | |
parent | ce786b9115b5f6d158bfa62d8ccca4ddf38a9630 (diff) |
uitest: log when we execute a dialog
Change-Id: Ibf3e739ce096dd7326325eb2010bf89630993dbd
Reviewed-on: https://gerrit.libreoffice.org/35496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/dialog.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 15a31bc1c40d..2371d88fe73a 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -50,6 +50,7 @@ #include <vcl/unowrap.hxx> #include <vcl/settings.hxx> #include <vcl/uitest/uiobject.hxx> +#include <vcl/uitest/logger.hxx> #include <salframe.hxx> #include <iostream> @@ -587,6 +588,7 @@ void Dialog::dispose() css::document::DocumentEvent aObject; aObject.EventName = "DialogClosed"; xEventBroadcaster->documentEventOccured(aObject); + UITestLogger::getInstance().log("DialogClosed"); SystemWindow::dispose(); } @@ -701,6 +703,7 @@ void Dialog::StateChanged( StateChangedType nType ) css::document::DocumentEvent aObject; aObject.EventName = "ModelessDialogVisible"; xEventBroadcaster->documentEventOccured(aObject); + UITestLogger::getInstance().log("Modeless Dialog Visible"); } } @@ -904,6 +907,7 @@ short Dialog::Execute() css::document::DocumentEvent aObject; aObject.EventName = "DialogExecute"; xEventBroadcaster->documentEventOccured(aObject); + UITestLogger::getInstance().log("DialogExecute"); // Yield util EndDialog is called or dialog gets destroyed // (the latter should not happen, but better safe than sorry while ( !xWindow->IsDisposed() && mbInExecute ) |