summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-23 10:55:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-23 15:37:01 +0200
commitffcedb264901e89dee28e12b6ccdd497a86f26f2 (patch)
treeca0262555a0b0e213e7bc34bd5f59c08ce8acbb9 /test
parent6ab8b5e25d009ca0144a534dcf476563b69e81c3 (diff)
toggle default away from legacy
Change-Id: If89fec63d91f4d3df38a365a606036517e6b1c37 Reviewed-on: https://gerrit.libreoffice.org/79392 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/source/screenshot_test.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx
index 658e6fa47e97..b2173b57bf25 100644
--- a/test/source/screenshot_test.cxx
+++ b/test/source/screenshot_test.cxx
@@ -191,11 +191,11 @@ void ScreenshotTest::dumpDialogToPath(const OString& rUIXMLDescription)
{
VclPtr<vcl::Window> aOwnedToplevel;
- bool bLegacy;
- bLegacy = rUIXMLDescription != "cui/ui/textanimtabpage.ui" &&
- rUIXMLDescription != "cui/ui/areatabpage.ui" &&
- rUIXMLDescription != "cui/ui/personalization_tab.ui" &&
- rUIXMLDescription != "modules/schart/ui/tp_3D_SceneIllumination.ui";
+ bool bLegacy = rUIXMLDescription == "fps/ui/remotefilesdialog.ui" ||
+ rUIXMLDescription == "modules/swriter/ui/sidebarstylepresets.ui" ||
+ rUIXMLDescription == "modules/swriter/ui/sidebartheme.ui" ||
+ rUIXMLDescription == "sfx/ui/startcenter.ui" ||
+ rUIXMLDescription == "svx/ui/datanavigator.ui";
std::unique_ptr<VclBuilder> xBuilder(new VclBuilder(pDialog, VclBuilderContainer::getUIRootDir(), OStringToOUString(rUIXMLDescription, RTL_TEXTENCODING_UTF8), OString(), css::uno::Reference<css::frame::XFrame>(), bLegacy));
vcl::Window *pRoot = xBuilder->get_widget_root();
Dialog *pRealDialog = dynamic_cast<Dialog*>(pRoot);