summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* -Werror,-Wunused-resultThomas Arnhold2014-04-191-1/+2
| | | | Change-Id: I8ec20e6a391bd835097af9be44a174e8e7b19cce
* set what system locale should resolve to for languagetagCaolán McNamara2014-04-112-1/+5
| | | | | | | normally this happens in desktop/source/app/langselect.cxx for the fat app case Change-Id: I4772172aa6f071ac03d74e2abe7a9e197f0dc964
* adapt XSheetAnnotation::testGetDate() to locale changeMichael Stahl2014-04-111-1/+1
| | | | | | ... in c0a4de1ede27c5911fea0829deabee0b599d5d40. Change-Id: Ic93b6febe719a465d768338faa3e222e8fca2e97
* run unit test with en-US locale dataCaolán McNamara2014-04-101-0/+10
| | | | Change-Id: I24c6a590b7b160cc2463af039310114f17273bc7
* Remove unused functionStephan Bergmann2014-04-091-1/+0
| | | | Change-Id: I5457124fe584d86953f3167303e92ae6134fa843
* whitespace cleanup in testMarkus Mohrhard2014-04-063-6/+0
| | | | Change-Id: Iaf3f7c360cd8d081d706e92ec52c3c96fe68c57c
* make the tolerance file optionalMarkus Mohrhard2014-04-031-3/+6
| | | | Change-Id: I172cbd54a231a4f9b621fb85c7f349839286143a
* coverity#1194929 String not null terminatedCaolán McNamara2014-03-301-1/+1
| | | | Change-Id: I749f4cb8340b4642040baed7f3363e2f1e4b65ad
* coverity#735554 Dead default in switchCaolán McNamara2014-03-281-2/+0
| | | | Change-Id: I12ebe5b9018109f35b6c6691fcf4497c56850d7c
* improve validation failure messageMarkus Mohrhard2014-03-261-1/+1
| | | | Change-Id: I1a613899d18a004149d3e637d796bc2f6687e6c4
* drop spadminCaolán McNamara2014-03-211-2/+0
| | | | Change-Id: Ie10ee80f1d35b40c0baf9d7ba5c1181b52405b5f
* Find places where OUString and OString are passed by value.Noel Grandin2014-03-181-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
* enable ODF export validationMarkus Mohrhard2014-03-081-1/+11
| | | | Change-Id: I09f517a49507a2eb31118f88f31dc2ff8b03de6a
* move the export validation code to testMarkus Mohrhard2014-03-051-0/+74
| | | | Change-Id: Iaafe30a1095bd5b6dac3637c394818ba8bd848ce
* coverity#738915 Uninitialized scalar fieldCaolán McNamara2014-02-181-2/+4
| | | | Change-Id: I1ac675441b50ceab7df78fb9646e4e1bd8e6e36e
* typo fixesAndras Timar2013-12-201-1/+1
| | | | Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
* Remove unnecessary use of OUString constructor in + expressionsNoel Grandin2013-12-171-1/+1
| | | | | | | | | Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
* Fix integer ambiguityStephan Bergmann2013-12-061-1/+1
| | | | Change-Id: I1247af709baf250b82a4156ea2cbf29c758f0c78
* count notes - GetNotesInRange now include last tabLaurent Godard2013-12-061-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>
* remove unnecessary use of OUString constructorNoel Grandin2013-11-112-7/+7
| | | | Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
* oupsLionel Elie Mamane2013-11-091-1/+1
| | | | Change-Id: I92eb65614b9c0afded3b9210208360a42747a34c
* UnoApiTest does not dispose Desktop anymoreLionel Elie Mamane2013-11-091-1/+1
| | | | Change-Id: Ia6cd838426ff77af213f285a67a22223c7358585
* UnoApiTest don't dispose mxDesktopLionel Elie Mamane2013-11-091-1/+0
| | | | | | | It breaks CppunitTest_sc_outlineobj, which runs several setUp/tearDown several times? Change-Id: Ic81324d150aa64135cdbedc4cb99f78d415da1aa
* Don't dispose twice in CalcUnoApiTest::tearDownStephan Bergmann2013-11-091-1/+1
| | | | | | | ...i.e., skip UnoApiTest::tearDown's dispose of mxDesktop and go directly to BootstrapFixture::tearDown. Change-Id: If4555c812cb42c4b76a36d4e59c1d96211915dba
* Calc UNO API testLionel Elie Mamane2013-11-092-0/+38
| | | | Change-Id: I6dcd9ac05ff7c4a6fbae7947b0ceda8797feea2f
* UnoApiTest don't require CalcLionel Elie Mamane2013-11-091-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
* remove redundant calls to OUString constructor in if expressionNoel Grandin2013-11-041-9/+9
| | | | | | | | | Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
* simplify code and fix out of bounds readMarkus Mohrhard2013-10-301-3/+3
| | | | Change-Id: I5be3a28d3d1ae43974f844d143a30bfd989cbe5b
* gbuild: move unittest mock profile to WORKDIRMichael Stahl2013-10-291-1/+1
| | | | Change-Id: Idd6420a855fec8b44fce6c0694b491d5f1eec95e
* langtag, test: remove Packages that deliver to OUTDIR/unittest/installMichael Stahl2013-10-291-5/+0
| | | | Change-Id: I13145c52bdf4a37e4a92ed653a2f131e09539285
* gbuild: set Package default target to INSTDIRMichael Stahl2013-10-281-0/+2
| | | | Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
* Improve test assertionsStephan Bergmann2013-10-231-13/+38
| | | | Change-Id: I5c5a76ca0e1db699dbb9f3fd381e050fc7256d27
* WaE: unused variableTor Lillqvist2013-10-021-0/+1
| | | | Change-Id: I55a0882def6f67719d8ba9d9b9bd41770486a812
* Parsing master presentation objects from 'objectlist.xml'Vishv Brahmbhatt2013-09-102-0/+42
| | | | | | | | | Parsing the property values of master presentation objects. Also new functions added to comphelper module for expanding filepaths macro to appropriate system file paths(for configuration files present at 'Impress.xcs') Change-Id: If0381a12155673e85103ddb5d51c34ae53fe2ecb
* Make sure unittest/user/config/soffice.cfg/ exitsStephan Bergmann2013-08-272-0/+1
| | | | | | | | | | | | | | ...otherwise PresetHandler::getOrCreateRootStorageShare (framework/source/accelerators/presethandler.cxx) will cause a com.sun.star.io.IOException: "URL "file:///.../solver/unxlngx6/unittest/user/config/soffice.cfg" passed to css.embed.FileSystemStorageFactory.createInstanceWithArguments does not denote an existing directory" in some CppunitTests. (And 1eecb8df22b77a6982601bf877067a685d913a7d "Some cleanup and consolidation of the Impress layout work" removed the last file that got definitely created in that directory from test/Package_unittest.mk.) Change-Id: Idbe42fdd6b06194781cceef62c50531ce0e1c706
* Some cleanup and consolidation of the Impress layout work.Thorsten Behrens2013-08-262-3/+8
| | | | | | Also make unit test work again after Mac-app like path changes. Change-Id: I13eae20141650e1d1d826a794d1f19baaef5f561
* Making changes to unit-test as well.Vishv Brahmbhatt2013-08-261-3/+3
| | | | | | Have made changes to unit-test file of 'layoutlist.xml' as well. Change-Id: Ia4d85fd7935a935b77dfbb475a38a087520865b4
* Deleting the required files.Vishv Brahmbhatt2013-08-267-0/+0
| | | | | | The files were left to be deleted in the previous commit ,now deleting them. Change-Id: I1243e6383d3cd96dccf1a786e9b9fc840e46f0a7
* Deleting useless unit-test files/directory.Vishv Brahmbhatt2013-08-261-7/+0
| | | | | | | Deleting the "empty_directory" entries of "unittest/user/*" in 'Package_unittest.mk' and corresponding files from the "test/user-template/*" directory. Change-Id: Ia53a18bf7d55bfaba91f9bb8c2a15d3578e35e11
* Few name conventions changes.Vishv Brahmbhatt2013-08-261-36/+54
| | | | | | Changed the name of attributes from "title-shape-relative-height" to "relative-height" & all others. Change-Id: I3010e8faf8a9bf347a7bec366449bbba77f0a69f
* Fixed a broken unit-test.Vishv Brahmbhatt2013-08-261-20/+51
| | | | | | | | Added a new component of "unoxml/source/service/unoxml" in makefile of 'sd_uimpress'. Also few changes in "drawdoc.cxx".Please ignore the changes of unit-test XML file, it has to be deleted in subsequent commit. Change-Id: I50eb516444820c8037aebc8859a322116989d3bf
* Made changes in the unit-test of other configuration filesVishv Brahmbhatt2013-08-261-2/+2
| | | | | | Unit-test path is changed for the "effects.xml" and "transitions.xml" to avoid "unit-test" error. Change-Id: Ia871b16b9b9c1bec96fa3d208dc9171c287b020a
* Solved the unit-test problemVishv Brahmbhatt2013-08-261-1/+1
| | | | | | Changed the destination path of test-profile at "test/Package_unittest.mk". Change-Id: I24ae595af22c38141add0ab8446281c3ccc84707
* Solved the identation problem related to "layoutlist.xml".Vishv Brahmbhatt2013-08-261-5/+27
| | | | | | | Have added a 'if' conditional statement to know whether layout's child is a empty 'text' node or 'presobj' node.And proceed with rest of the things ,if it is a 'presobj' node.Also the xml files are indented. Change-Id: I676e710b86b1f50dbd861f2cb180bf9be839b867
* Adding new Slide Layouts Samples to "layoutlist.xml".Vishv Brahmbhatt2013-08-261-0/+2
| | | | | | | Have added new "Slide Layouts" samples.So commented out the code related to existing slide layouts in "sdpage.cxx" and also added some code for XML parsing of the new layouts. Change-Id: I8f5fdcab5f2eb41e37fa522a7801b388cbfefed5
* Working version of XML parser from configuration file pathVishv Brahmbhatt2013-08-261-0/+8
| | | | | | | | Added some changes in the "getRootElement" and new "layoutlist.xml" is added for "unit-test" module. XML parser works perfectly in the installation,only the failure of "unit-test" is left to be solved. Some refactoring related to "layoutlist.xml" will be updated soon. Change-Id: If7ed3af40e9b6df26e20881728181eb6c82936d8
* Changing the XML parser with configuration file pathVishv Brahmbhatt2013-08-261-0/+1
| | | | | | Updating the "getRootElement" function.So "layoutlist.xml" can be read from actual configuration path. Change-Id: Iee636d32e629e935e46a18572646659780ae20e3
* targetted clean of redundant header piece from 62badf3828Michael Meeks2013-07-262-6/+0
| | | | Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
* remove OUString wrap for string literalsThomas Arnhold2013-06-293-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>
* Improve error messages for the xml-diff based unit tests.Jan Holesovsky2013-05-141-13/+33
| | | | Change-Id: Ided6749ebe4899a6d826d069c38d7b21b467d431