Commit Graph

8 Commits

Author SHA1 Message Date
Michael Stahl
f0a6041559 gbuild: CppunitTest: always use unittest configuration
The sc_subsequent_filters_test was failing because of a lock file
because it did not use the unittest configuration.

Refactor gb_CppunitTest_use_configuration so it uses both the instdir
and unittest configuration to prevent such errors.

In case there ever is a test that does not work with the unittest
configuration it should call gb_CppunitTest_use_instdir_configuration.

Change-Id: Ibc00d42f8b6102d50d922f51173120798fa45c6e
2015-02-27 19:33:07 +01:00
Miklos Vajna
aa9267dffe CppunitTest_cppcanvas_emfplus: adapt to now enabled sidebar in Draw
Needed since 583e9d834d (Present the
(collapsed) sidebar also in Calc and Draw., 2014-11-22).

Change-Id: I1664b6132ba7ba1e6aee024bd1a12c0ed3086eb0
2014-11-23 16:13:27 +01:00
Michael Meeks
19866932cc emfplus: re-work and cleanup unit test
Change-Id: I484331c4dd5feedf8587530912bb65556c1689c0
2014-11-16 14:32:12 +01:00
Stephan Bergmann
5631661e1f Missing test dependencies
Change-Id: I7ea8f2b02b66a15e86e20948536c34017d6a3999
2014-08-08 17:41:33 +02:00
David Tardon
7dc96ebc05 fdo#81799 we need cppuhelper here too
Change-Id: I719557813180c3f862ef4b00e24142fdbbb0daf0
2014-07-29 10:08:12 +02:00
Stephan Bergmann
798f410a94 Fix vclplug_* dependencies for gb_CppunitTest_use_vcl
...and replace gb_CppunitTest_unset_headless with
gb_CppunitTest_use_vcl_non_headless.

Change-Id: Ibd859f98ed8df09988ca26ffcee26e06e25d8313
2014-06-12 13:49:45 +02:00
Stephan Bergmann
369d95931f DeInitVCL at end of tests
This required some changes to the framework:

* Init-/DeInitVCL is no longer done per individual test in BootstrapFixture, but
  once per CppunitTest invocation in a new vclbootstrapprotector (similarly to
  the exisiting unobootstrapprotector).  CppunitTests that need VCL now need to
  declare gb_CppunitTest_use_vcl.

* For things to work properly, the UNO component context needs to be disposed
  from within DeInitVCL (cf. Desktop's Application::DeInit called from
  DeInitVCL).  The easiest solution was to introduce an
  Application::setDeInitHook (where the hook is called from DeInitVCL)
  specifically for vclbootstrapprotector to call.

* PythonTests don't (yet) call DeInitVCL; they still hook into
  BootstrapFixture's original test_init functionality (to call InitVCL), and do
  not make use of the vclbootstrapprotector.

Change-Id: I4f3a3c75db30b58c1cd49d81c51db14902ed68b2
2014-06-04 08:55:12 +02:00
Miklos Vajna
c3d90aa384 fdo#77229 testcase
We didn't have EMF+ rendering testcases so far, let's see if it works
out to render into a bitmap and then just assert pixel position colors
there. It's better than nothing for missing shapes at least.

Change-Id: I2d1c63fef1127f69af7156ed6c99553845f77c9f
2014-04-10 12:21:31 +02:00