summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2014-08-08fix ambiguity in argumentMarkus Mohrhard1-3/+3
Change-Id: I00146441b1271d7a3c866ad58d1b3c72b845dc0c
2014-08-08XStyleLoader2 loadStylesFromDocument - unit testsLaurent Godard2-0/+101
Change-Id: Id143689f573e6f8585db9bc48a252e311ff0e721
2014-08-06Improve test failure outputStephan Bergmann1-4/+6
Change-Id: I4417318988ef70639cbcec9d776c783ad69c3990
2014-07-29Remove some unused codeMarcos Paulo de Souza1-5/+0
Change-Id: Ib1fb5108a858c35a5bbe8ba865e15660639725e3 Reviewed-on: https://gerrit.libreoffice.org/10593 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-07-20xmlwriter: set indent and always write utf8 xml documentTomaž Vajngerl1-1/+2
Change-Id: I1477833e696edbac2dc375329e7b26a7105d1593
2014-07-20Support color related MTF actions in mtfxmldumpTomaž Vajngerl1-7/+54
Change-Id: I5deac7f096866a8f149acfd0d11bbc0963238e88
2014-07-20Extend metafile to xml dump testing tool with more MFT actionsTomaž Vajngerl2-31/+117
Change-Id: I819de476c6a615b8cf27a6a26d41a6e9ac25ef85
2014-07-04improve test failure messageMarkus Mohrhard1-2/+2
Change-Id: I71d6b65b046bfc31692ba12423288c55fccb2d02
2014-07-02correct XSheetAnnotations GetByIndex test for #fdo#80551Laurent Godard1-14/+14
the previous testGetCount test already added a note on sheet 2 testGetByIndex now works on sheet 3 Change-Id: I2cd49aa2bbf5c1b707287518e0f15088f3ee5ec0 Reviewed-on: https://gerrit.libreoffice.org/9938 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-02unit test XSheetAnnotations GetByIndex for #fdo80551Laurent Godard1-0/+49
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-06-16xmlChildElementCount is only available in libxml2 >= 2.7.3Douglas Mencken1-0/+6
fixes build error Undefined symbols: _xmlChildElementCount Change-Id: I9687971912b4d0ae55bf1d9ad987fd339fcbec7e Reviewed-on: https://gerrit.libreoffice.org/9788 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-12Fix vclplug_* dependencies for gb_CppunitTest_use_vclStephan Bergmann2-14/+0
...and replace gb_CppunitTest_unset_headless with gb_CppunitTest_use_vcl_non_headless. Change-Id: Ibd859f98ed8df09988ca26ffcee26e06e25d8313
2014-06-10MetafileXmlDump: Add dumping of META_CLIPREGION_ACTION's.Jan Holesovsky1-1/+20
Change-Id: I4b51abf6193c33367edebc82772054875b5b9bba
2014-06-10MetafileXmlDump: No need to specify the stream, simplify the API.Jan Holesovsky1-5/+20
Change-Id: Ia08f67e359bbd26cefdba8661f0b0c4ae2147382
2014-06-04Missing new files from previous commitStephan Bergmann2-0/+127
Change-Id: Ic8d7c13602c8831e411181c802eb825124578b19
2014-06-04DeInitVCL at end of testsStephan Bergmann2-15/+17
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-02Fix memory leaks in test codeStephan Bergmann1-9/+24
Change-Id: Ifa756a5da636e0b37654ad83900115872bc40f0e
2014-05-27Remove unnecessary semicolonsPeter Senna Tschudin1-1/+1
A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // </smpl> Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-24cppcheck: unreadVariableThomas Arnhold1-4/+0
Change-Id: Ifbcae35c0cf3bdb9ba5c680b1627117c47d6c9a0
2014-05-22Avoid including <config_features.h> in <vcl/svapp.hxx>Tor Lillqvist1-0/+3
Change-Id: I711621c89e8f75d4450867e303ccdc8017bcd9d7
2014-05-19test: write to stream directly in MetafileXmlDumpTomaž Vajngerl1-8/+7
Change-Id: If62a29af473f602f89e6e0e4a06772a320a23b9a
2014-05-15test: don't create root element in startDocument() in xmlwriterTomaž Vajngerl2-8/+5
Change-Id: Ia08e9f8caf2a2fb42855dcb2245e013e1a181216
2014-05-15test: dump staroffice metafile to XML & XML writer interfaceTomaž Vajngerl3-0/+493
Change-Id: Ie42f72e0fc281d1f51e1729be408c2b0042f4174
2014-05-15test: parseXmlStream & parseHtmlStream added to test toolsTomaž Vajngerl2-5/+25
Change-Id: Iff8af5e9ffefb4c3cecf387b16473d45e8b4a65a
2014-05-14-Werror,-Wunused-functionStephan Bergmann1-0/+2
Change-Id: I894ca2eb865405a9991f921997cc22c5a34c4da2
2014-05-14Fail the test if executing the validator failsStephan Bergmann1-1/+3
Change-Id: I15aac53a817ca309697cba8a962e788aea1619d0
2014-05-14Find places where uno::Sequence is passed by value.Noel Grandin1-2/+2
Implement a clang plugin to find them, and clean up existing code to pass them by reference. Change-Id: If642d87407c73346d9c0164b9fc77c5c3c4354b8 Reviewed-on: https://gerrit.libreoffice.org/9351 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-08WaE: -Werror=maybe-uninitializedCaolán McNamara1-5/+5
Change-Id: Iec05633cf1716079eee54c376bd0736b638673dd
2014-05-08various: sal_Bool->boolNoel Grandin4-22/+20
Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9
2014-05-01fix spelling errorMarkus Mohrhard1-1/+1
Change-Id: If6c318f1a1f74a39083bf83eed2f80aca1e27bc5
2014-04-30test: move XmlTestTools API documentation to the headerMiklos Vajna1-26/+0
Change-Id: Iae56b1fb68fde0cbc44f6b9e37ba1a66194b25e0
2014-04-29tests: add XML and HTML test tools to test moduleTomaž Vajngerl3-0/+152
XML and HTML parsing and XPath asserts are used by many test in sw, sc and sd modules. This commit moves this functionallity to test module, where it is available to all modules. Change-Id: I53ad9c45b24f4c9bf106cb58ea619002968bfeda
2014-04-19-Werror,-Wunused-resultThomas Arnhold1-1/+2
Change-Id: I8ec20e6a391bd835097af9be44a174e8e7b19cce
2014-04-11set what system locale should resolve to for languagetagCaolán McNamara2-1/+5
normally this happens in desktop/source/app/langselect.cxx for the fat app case Change-Id: I4772172aa6f071ac03d74e2abe7a9e197f0dc964
2014-04-11adapt XSheetAnnotation::testGetDate() to locale changeMichael Stahl1-1/+1
... in c0a4de1ede27c5911fea0829deabee0b599d5d40. Change-Id: Ic93b6febe719a465d768338faa3e222e8fca2e97
2014-04-10run unit test with en-US locale dataCaolán McNamara1-0/+10
Change-Id: I24c6a590b7b160cc2463af039310114f17273bc7
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-21drop spadminCaolán McNamara1-2/+0
Change-Id: Ie10ee80f1d35b40c0baf9d7ba5c1181b52405b5f
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