diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-11-26 11:41:18 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-11-26 10:59:15 +0100 |
commit | 269e36ece4ff720e10c83126d7c553c7287645c6 (patch) | |
tree | 97960981163dad0592ee9c380fdcc0d8f84dded9 /include/test | |
parent | 82d8d76b8a6bb0d7b6585411666f5421a99b6d34 (diff) |
Introduce BootstrapFixture::IsDefaultDPI convenience function
It should be used to conditionally disable tests that are unreliable
in non-default-DPI environments. The workaround implemented by use
of the function should be temporary, until a proper fix is found.
Change-Id: Ie236226fcfd0ffb054149efc2b7a1727506c4ad0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106661
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/test')
-rw-r--r-- | include/test/bootstrapfixture.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/test/bootstrapfixture.hxx b/include/test/bootstrapfixture.hxx index 052e3a8e229d..3a0cc1da7119 100644 --- a/include/test/bootstrapfixture.hxx +++ b/include/test/bootstrapfixture.hxx @@ -48,6 +48,12 @@ class OOO_DLLPUBLIC_TEST BootstrapFixture : public BootstrapFixtureBase protected: css::uno::Reference<css::uno::XComponentContext> mxComponentContext; + // A convenience function to be used to conditionally exclude tests not behaving properly + // on UI scaling other than 1:1. Using this should be considered a temporary workaround, + // until a proper fix is implemented that either considers the DPI properly in the test, or + // makes the invariants that test uses independent of DPI. + static bool IsDefaultDPI(); + public: DECL_STATIC_LINK(BootstrapFixture, ImplInitFilterHdl, ConvertData&, bool); |