summaryrefslogtreecommitdiff
path: root/test/source
AgeCommit message (Collapse)AuthorFilesLines
2014-04-11adapt XSheetAnnotation::testGetDate() to locale changeMichael Stahl1-1/+1
... in c0a4de1ede27c5911fea0829deabee0b599d5d40. Change-Id: Ic93b6febe719a465d768338faa3e222e8fca2e97
2014-04-09Remove unused functionStephan Bergmann1-1/+0
Change-Id: I5457124fe584d86953f3167303e92ae6134fa843
2014-04-06whitespace cleanup in testMarkus Mohrhard3-6/+0
Change-Id: Iaf3f7c360cd8d081d706e92ec52c3c96fe68c57c
2014-04-03make the tolerance file optionalMarkus Mohrhard1-3/+6
Change-Id: I172cbd54a231a4f9b621fb85c7f349839286143a
2014-03-30coverity#1194929 String not null terminatedCaolán McNamara1-1/+1
Change-Id: I749f4cb8340b4642040baed7f3363e2f1e4b65ad
2014-03-28coverity#735554 Dead default in switchCaolán McNamara1-2/+0
Change-Id: I12ebe5b9018109f35b6c6691fcf4497c56850d7c
2014-03-26improve validation failure messageMarkus Mohrhard1-1/+1
Change-Id: I1a613899d18a004149d3e637d796bc2f6687e6c4
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin1-2/+2
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-08enable ODF export validationMarkus Mohrhard1-1/+11
Change-Id: I09f517a49507a2eb31118f88f31dc2ff8b03de6a
2014-03-05move the export validation code to testMarkus Mohrhard1-0/+74
Change-Id: Iaafe30a1095bd5b6dac3637c394818ba8bd848ce
2014-02-18coverity#738915 Uninitialized scalar fieldCaolán McNamara1-2/+4
Change-Id: I1ac675441b50ceab7df78fb9646e4e1bd8e6e36e
2013-12-20typo fixesAndras Timar1-1/+1
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin1-1/+1
Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-12-06Fix integer ambiguityStephan Bergmann1-1/+1
Change-Id: I1247af709baf250b82a4156ea2cbf29c758f0c78
2013-12-06count notes - GetNotesInRange now include last tabLaurent Godard1-0/+24
- 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-11-11remove unnecessary use of OUString constructorNoel Grandin2-7/+7
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-09oupsLionel Elie Mamane1-1/+1
Change-Id: I92eb65614b9c0afded3b9210208360a42747a34c
2013-11-09UnoApiTest does not dispose Desktop anymoreLionel Elie Mamane1-1/+1
Change-Id: Ia6cd838426ff77af213f285a67a22223c7358585
2013-11-09UnoApiTest don't dispose mxDesktopLionel Elie Mamane1-1/+0
It breaks CppunitTest_sc_outlineobj, which runs several setUp/tearDown several times? Change-Id: Ic81324d150aa64135cdbedc4cb99f78d415da1aa
2013-11-09Don't dispose twice in CalcUnoApiTest::tearDownStephan Bergmann1-1/+1
...i.e., skip UnoApiTest::tearDown's dispose of mxDesktop and go directly to BootstrapFixture::tearDown. Change-Id: If4555c812cb42c4b76a36d4e59c1d96211915dba
2013-11-09Calc UNO API testLionel Elie Mamane1-0/+37
Change-Id: I6dcd9ac05ff7c4a6fbae7947b0ceda8797feea2f
2013-11-09UnoApiTest don't require CalcLionel Elie Mamane1-6/+2
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-04remove redundant calls to OUString constructor in if expressionNoel Grandin1-9/+9
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-10-30simplify code and fix out of bounds readMarkus Mohrhard1-3/+3
Change-Id: I5be3a28d3d1ae43974f844d143a30bfd989cbe5b
2013-10-23Improve test assertionsStephan Bergmann1-13/+38
Change-Id: I5c5a76ca0e1db699dbb9f3fd381e050fc7256d27
2013-10-02WaE: unused variableTor Lillqvist1-0/+1
Change-Id: I55a0882def6f67719d8ba9d9b9bd41770486a812
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks2-6/+0
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-06-29remove OUString wrap for string literalsThomas Arnhold3-3/+3
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-05-14Improve error messages for the xml-diff based unit tests.Jan Holesovsky1-13/+33
Change-Id: Ided6749ebe4899a6d826d069c38d7b21b467d431
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák3-5/+5
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks7-161/+28
2013-04-26test: clean up namespacingThomas Arnhold29-29/+59
Change-Id: I7df07176bdbd15fdfdf8f9a7cdb26d4bee12997d
2013-04-25don't pollute global namespaceThomas Arnhold1-1/+2
Change-Id: Iffeeffb015c59ea787838c737c6a11f6fbef2794
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks26-595/+106
2013-04-09move Python tests in-processMichael Stahl1-10/+33
This is nice to make them more easily debuggable. A series of crude hacks are employed to bootstrap enough services from python so the current tests run. This is only tested with system python3 on Fedora. Change-Id: I5e06741e55ead7fddec41ff776ff8ca5d2399469 Reviewed-on: https://gerrit.libreoffice.org/3215 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák17-113/+113
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-29ResMgr with LanguageTagEike Rathke1-3/+2
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold9-48/+48
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold6-26/+25
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18fix other problems found by WundefLuboš Luňák1-1/+1
Change-Id: Ib4aba95436f82d2a20b07a092f0fd07e0620fdcf
2013-01-31Use a method from UnoApitest instead of implement a new one in calcMarcos Paulo de Souza1-8/+3
In calc, we see a lot of implementations of createFileURL. So get ride of all it and start to use the UnoAPitest::createFileURL method. Also, clean the UnoApiRest::createFileURL method, fix the path from UnoApiTest and moved some testing files to the right dir that the file belongs. Conflicts: sc/qa/extras/scoutlineobj.cxx Change-Id: Ic02f13777503729ac70da590f4a42866f17ea9b2
2013-01-24sc test XSheetOutlineLaurent Godard1-0/+296
Change-Id: Iea0576e61963dbdb72c88fe332c7cfe3e8ab7ff0 Reviewed-on: https://gerrit.libreoffice.org/1794 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-17sc test for XSheetAnnotationsLaurent Godard1-0/+132
Change-Id: Ie5ceb7f8d828eb9c1f4c92996ebb02c8a83f4cac Reviewed-on: https://gerrit.libreoffice.org/1738 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-01-17sc test for XSheetAnnotationLaurent Godard1-0/+88
Change-Id: I1fa77c874c6307ff71ea0aeee653acf1305f2646 Reviewed-on: https://gerrit.libreoffice.org/1736 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky1-1/+1
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin1-3/+3
I had to drop XEventBroadcaster from the merged interface because it introduced method name conflicts (addEventListener). Shouldn't be an issue since it was scheduled to be dropped anyhow, and the service implementation still implements it, so existing clients will be fine. I dropped the interface XPropertySet from the combined IDL because nobody seems to be using it, and it's primary purpose appears to be to set weird flags. I dropped the optional interfaces XStatusIndicatorFactory XDispatchInformationProvider from the combined IDL because the service does not implement them, and nobody seems to be using them. I suspect they were mistakenly copied from XFrame. I also did not convert the Title, UserDefinedAttributes and LayoutManager properties to attributes, again because no-one is using them. Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-04re-base on ALv2 code. Includes:Michael Meeks1-3/+3
Patches contributed by Herbert Duerr i#118735 prevent endless loop if vlookup/hlookup doesn't find anything http://svn.apache.org/viewvc?view=revision&revision=1239673 Patches contributed by Andre Fischer remove lp_solver http://svn.apache.org/viewvc?view=revision&revision=1199180 i#118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Armin Le-Grand i#118485 - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 i#118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 Patches contributed by lihuiibm i#108860 - Fix range validation. http://svn.apache.org/viewvc?view=revision&revision=1242846 i#118954 Chart data will lost after copy to different file http://svn.apache.org/viewvc?view=revision&revision=1301345 Patches contributed by Ariel Constenla-Haile Fix Linux build breaker: extra qualification on member http://svn.apache.org/viewvc?view=revision&revision=1301591 i#118696 - i#118697 - Fix some Sheet Tab Color API issues http://svn.apache.org/viewvc?view=revision&revision=1225428 i#118697 - Fix uninitialized variable http://svn.apache.org/viewvc?view=revision&revision=1225859 i#118771 - ScUndoImportTab should preserve tab background color http://svn.apache.org/viewvc?view=revision&revision=1230356 i#118921 - Repaint linked sheet tab background color after updating link http://svn.apache.org/viewvc?view=revision&revision=1245177 i#118927 - Undo/Redo "Update Link" does not reset sheet tab color http://svn.apache.org/viewvc?view=revision&revision=1245241 i#118747 - Copy tab color when transferring sheets across documents http://svn.apache.org/viewvc?view=revision&revision=1230355 Patch contributed by Oliver Rainer-Wittman i#118012 - methods <ScBroadcastAreaSlot::AreaBroadcast(..)> and <ScBroadcastAreaSlot::AreaBroadcastInRange(..)> adapt stl-container iteration in order to avoid destroyed iterators during iteration. http://svn.apache.org/viewvc?view=revision&revision=1297916 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 Patch contributed by Daniel Rentz calc69: #i116936# fix VBA symbol Cells http://svn.apache.org/viewvc?view=revision&revision=1172135 Patches contributed by leiw: i#118546 CPU 100% on switched off AutoCalculate with Conditional Formatting on date values http://svn.apache.org/viewvc?view=revision&revision=1301380 Re-add new function documentation. Many various cleanups. Add missing calc66: #o11817313# also look at formula result number format, remove redundant binaries.
2012-11-30Remove rtl:: from a test in test/Marcos Paulo de Souza1-21/+21
Change-Id: I151dc2e733c6c3a56d316b931934ff80aa076580 Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1205 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-11-29Improve error messageStephan Bergmann1-1/+3
Change-Id: Ibaee8bd83e9f34e0258b48d87151ec03c8301a3a
2012-11-17we really don't need lang-conversion hereEike Rathke1-6/+2
Change-Id: I1f72ca29b2f5b286bfae906dc3ee16581a2b1c36