454ec6e791
XStyleLoader2 : enhance unit test to PageStyle
...
and remove duplicate code
Change-Id: Ib9e3568c860fe5cd3f11374a1c61dff101e33a18
Reviewed-on: https://gerrit.libreoffice.org/10832
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2014-08-11 06:37:02 +00:00
161931ba7b
loplugin:saloverride
...
Change-Id: I6a3cdf840468d6508e8ffecdc50d79041b9b4797
2014-08-08 09:27:10 +02:00
949279c801
XStyleLoader2 loadStylesFromDocument - unit tests
...
Change-Id: Id143689f573e6f8585db9bc48a252e311ff0e721
2014-08-08 00:38:10 +02:00
17d0d12b8d
unit test XSheetAnnotations GetByIndex for #fdo80551
...
Change-Id: I89ebc3d5ac257f3c754a050caf3776959b81d8b3
Reviewed-on: https://gerrit.libreoffice.org/9933
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-07-02 12:21:34 +00:00
37e6631cc5
remove whitespace
...
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-25 05:41:10 +02:00
e2080e70fe
new compilerplugin returnbyref
...
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
class A {
struct X x;
public X* getX() { return &x; }
}
which can be:
public X& getX() { return x; }
Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
45f533aee9
loplugin:staticcall
...
Change-Id: I670fbcd83e368f2821d37a392cbc007b1f4cd55e
2014-06-13 17:54:31 +02:00
2dd1f71b24
sc html test: dispose xComponent in teardown
...
Change-Id: If33ad8bcca2c224b6bf68a1bdaa015326c17aef8
2014-05-15 22:05:15 +02:00
fa8d10adbf
sc html export: HTML export test fixture & "SkipImages" test
...
Change-Id: I8a419f535570924d508e1ce5f0c6bb1fbdd829a7
2014-04-29 23:57:34 +02:00
c79a5f87b1
remove executable bit
...
Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
2014-04-17 15:11:14 +02:00
1f742c520d
Properly #ifdef some per-platform test code
...
Change-Id: I286fb35e223f205ecc649aa388471ef1b0823d86
2014-04-15 23:29:14 +02:00
c21f2497c6
Clean up function declarations and enable some forgotten(?) tests
...
Change-Id: I0e0d05a5b226b5c59798345f402f8a7724d2689a
2014-04-15 16:10:54 +02:00
567ef6d578
Second batch of adding SAL_OVERRIDE to overriding function declarations
...
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.
Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
f992400f6f
count notes - GetNotesInRange now include last tab
...
- refactor tests
- add unit test on counting notes on a sheet
Change-Id: I6762a0e791a745b828800645effdfc044ac33710
Reviewed-on: https://gerrit.libreoffice.org/6954
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
2013-12-06 05:46:16 -06:00
2778530032
More sc CppunitTest fixes
...
...similar to 01d9f3fbeeb2a8f63a614fbc1a66ffb5c80c624f "The ScOutlineObj test
still requires the fugdge."
Change-Id: I61d7024edbbade5eaf950752967ceac71306d6cb
2013-11-09 16:05:53 +01:00
92727ebb48
More sc CppunitTest fixes
...
...similar to 01d9f3fbeeb2a8f63a614fbc1a66ffb5c80c624f "The ScOutlineObj test
still requires the fugdge."
Change-Id: Ib788f4d6f38eb1dc4b8e4856be8fd4a6ddd968b3
2013-11-09 15:34:38 +01:00
01d9f3fbee
The ScOutlineObj test still requires the fugdge
...
...that got moved from UnoApiTest to CalcUnoApiTest in
a071a29d4f7e8065a36a313027a007edac102e20 "UnoApiTest don't require Calc."
Change-Id: I1a38c496ef2baf42b5fd82ff653e822a8b80a124
2013-11-09 15:14:22 +01:00
a071a29d4f
UnoApiTest don't require Calc
...
There is no reason for the generic UnoApiTest to require Calc
specifically. Calc tests can/should instantiate a Calc instance.
We can create a CalcUnoApiTest for that that inherits from
UnoApiTest; however this does not seem necessary, "make sc.clean"
succeeds.
Anyway, the ScGlobals::ensure mentioned in the comment does not
seem to exist.
This allows us to eliminate some code duplication in tests
that were reimplementing UnoApiTest minus the Calc instantiation.
Change-Id: I37bea9df41e3960df0458fe689cf6c046a243617
2013-11-09 06:36:45 +01:00
2bcb5f5c36
Fix tools/string.hxx remnants
...
Change-Id: I06c95dcfcf2af14e109fabdde69bf98d06801331
2013-10-22 15:09:32 +02:00
3ce0ad986c
WaE: unused variable
...
Change-Id: I63b2d8fe755e95578722d928d7f076d83cb7e216
2013-10-02 21:27:01 +03:00
6357299275
minor tweaks to existing unittests
...
Change-Id: I64769fee917c5d8c6450a19ad53fdf795e280c98
2013-08-03 21:00:41 +02:00
3bade6b479
Fix reference update on range references in named expressions.
...
This fixes the macro test failure.
Change-Id: I8ddaaaa49d1faf36cc37212895c21023a4ab6135
2013-07-31 21:26:51 -04:00
e9dc114a2b
Revert "WaE: unused variables"
...
This reverts commit 16c3a29849b31029f2a0ac1e8b2425de9c6991de.
2013-07-31 13:23:31 +02:00
16c3a29849
WaE: unused variables
...
Change-Id: I37523f34bdf6e21f5e5781927884bd0311a17fe8
2013-07-31 13:12:04 +02:00
3ab7a98844
WaE: unused variable 'pDoc'
...
Change-Id: I2d5cc2a56c0df779df93d4b207e15e45c63e9572
2013-07-31 14:02:15 +03:00
6add3c38a8
unit ( slowcheck ) test for fdo#67547
...
although this really isn't the correct location for the test ( a scripting
module slowcheck test would be more appropriate I think ). Still better than
no test.
Change-Id: I434e1217c25ee33b59ea3b09c4500bdd7bb081ba
2013-07-31 10:53:31 +01:00
0086862df1
Temporarily disable failing macro test. I'm not sure exactly what fails.
...
Change-Id: I4904dc86326477d05a4e557a1abe1af0846c2e98
2013-07-31 01:32:22 -04:00
ba0a57702c
remove OUString wrap for string literals
...
For some functions and all kinds of Exceptions.
CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException
createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService
bash command:
for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
| cut -d ':' -f1 | sort -u
| xargs sed -i
-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
-e "s/\($i.*\)\"+ /\1\" + /g";
done
Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: Thomas Arnhold <thomas@arnhold.org >
2013-06-29 21:52:54 +00:00
254a2d6c71
add missing PageSetup.PageSize api
...
Change-Id: If52fb46f61962827acc08025617d9d61a6ab6d40
2013-06-07 12:50:34 +01:00
d4116a4f66
add some tests for worksheet_change ( when excited by various range changes )
...
Change-Id: I0399a9557170de7d45f0fffbcb2c00a8f084010b
2013-05-29 14:31:36 +01:00
fbd74ed44c
make some vba Name object attributes read/write and add test document
...
Change-Id: Ibd12835cc5368080a302b3b8d7c6f52ccc434e3c
2013-05-15 09:52:30 +01:00
f34c31560b
fix Workbooks.xls unit test ( was failing on windows )
...
Change-Id: Id1e3a761765c1e860f611f40a78a6c24fa17d055
2013-05-13 15:23:46 +01:00
064457db3e
temporarily disable unit test that fails on windows
...
Change-Id: Id3cc26b6fbb1ec0ddacf7228e1c147085db415e1
2013-05-10 09:29:50 +01:00
959b25bc15
add simple Range.Name test
...
Change-Id: I705e05878015f5c8aad993219ea89ea9d47f07fb
2013-05-09 14:11:22 +01:00
f1c6bebcad
add some Range.value tests
...
Change-Id: I4800ad80f1b447cae03664653285f1917ad3ee7e
2013-05-09 14:11:21 +01:00
7e735236e9
add new test for Workbooks
...
Change-Id: Id271f10ac82ebae9fedd68d30c7f44435d60751d
2013-05-09 14:11:20 +01:00
ca3447eab2
add OLEObject related test
...
Change-Id: I6ce22ecd6295bd8ad302d0f53c783f4ac2a1a036
2013-05-09 14:11:19 +01:00
a68c828baa
some testcases for api generated changed & click events for vba controls
...
Change-Id: I408c9aa0b80971f326b607b274ce046c27098f74
2013-05-09 14:11:19 +01:00
b3a635e203
tweak MiscControls to test simple textbox change event
...
Change-Id: I256a029afefe5990dfb0c87859bae4508f5920bc
2013-05-09 14:11:18 +01:00
92c8becf8b
Add check form contrast and IncrememtContrast behaviour in Shapes.xls
...
Change-Id: I6ef275c6a978db0da59da953511105c407a66f72
2013-05-09 14:11:18 +01:00
8b94bfebf6
Tweak further the indices checked for break, also tweak test document
...
<sigh> pagebreak implementation is still flawed here, the used
range is used to determine whether the page break should be
considered ( or not ) Problem is that it is not the used
range but rather the rightmost column position that contains content
( but not necessarily the column that contains content but rather
the righmost column that has content ( or even that is covered either
by spillover from an adjacent column or drawing )
Change-Id: I68c8ccc5911049bc4b2076992f839bc684d966a9
2013-05-09 14:11:17 +01:00
683b016ae0
Renable Range-2 vba test as I589b93461b5f4125408f4fc2cb87cd84686f7b95 fixed it
...
note: Change ID I589b93461b5f4125408f4fc2cb87cd84686f7b95
" Fix ScRangeList::Parse wrt defaulted delimiter and default tab params" in addition
to fixing problems with Ranges.xls appears also to solve the issue with Range-2.xls
Change-Id: I28f53e09a6c7004f766d7e4f2ca9524cc8bbd83f
2013-05-09 14:11:17 +01:00
a2c34b3d9a
add Range.Cut check
...
Change-Id: I6d33ce8fe2333e7920b5c6cf82531ee859352748
2013-05-09 14:11:17 +01:00
fc36b2247d
re-enable Ranges.xls vba testdocument, additionally remove some failing tests
...
Change-Id: I6289aa7e7872cc0c6aacd89f0679609792d37c28
2013-05-09 14:11:16 +01:00
a6ee93e38d
some extra tests for ListBox.MultiSelection and ListBox.Text api
...
also tests ListBox.AddItem & ListBox.Clear ( plenty of room
to flesh these tests out )
Change-Id: Iddaa5a5e6b406359c6215ad726085d3696e633cf
2013-05-09 14:11:16 +01:00
37cc1bb26f
Add some misc control related vba tests
...
Change-Id: I8a6e2aeb3766a3890c5026129794b25cfa5c7ba5
2013-05-09 14:11:15 +01:00
27e2b40989
add test for new vba ReturnInteger type
...
Change-Id: If8ce9e5ce35c438b31234aab410b37f12eb1b1f4
2013-05-09 14:11:14 +01:00
28c4fd5eff
add new vba test file ( for testing input/output for 'Value' attributes )
...
Change-Id: I7b06c463a11b5d6442f69130e9eee767004e426f
2013-05-09 14:11:14 +01:00
72e5d0c8fb
Move to MPLv2 license headers, with ESC decision and author's permission.
2013-04-30 13:34:06 +01:00
934a179b75
forgot those
...
Change-Id: I8ae6f047744581dbddfbd10b08bc6e4fcf34b0de
2013-04-26 18:17:53 +02:00