Commit graph

71 commits

Author SHA1 Message Date
Javier Amor García e5f15f69df RTFHandler: protect against CR and bad hexadecimal sequence
In RTF is possible to specify characters with the sequence \'XX being
XX an hexadecimal number.
With this changeset we guard against incorrect hexadecimal numbers which
will be ignored.

The other change added is to ignore carriadge returns in plain text.
2016-02-01 16:55:20 +01:00
Javier Amor García 8e80b57d31 RTFHandler: support charsets in plain text
Allow to switch charset in RTF plain text parts.
2016-02-01 11:48:15 +01:00
Jesús García Sáez bad7fd4532 Unit test encode qp text: long of second line
This will fail without sope commit 361178217156177a2a40c327a64f70716b30ae3a
2016-01-19 19:51:41 +01:00
Jesús García Sáez cb3959d991 Unit test encode qp text
This will crash without sope commit 0c9b08d18f07205b4de58bb700ad15a4a4649e53
2016-01-19 19:51:06 +01:00
Jesús García Sáez 2d5995a8f4 Merge pull request #213 from zentyal/jamor/unittest-merge
Add RTFHandler unittest
2016-01-12 18:35:43 +01:00
Enrique J. Hernández Blasco 0c5f4edb36 Give support to JUnit output format for sogo-tests
To integrate with CI system.

sogo-tests now accepts a flag (-f) to determine the output format:

  * text : Current behaviour and default value
  * junit: XML output suitable for CI system such as Jenkins
2016-01-12 16:14:30 +01:00
Jesús García Sáez db213c2b73 unittest: just reformat and indentation
no real changes
2015-12-22 11:48:35 +01:00
Jesús García Sáez c2922e2a26 unittest: QP encode function from NGMimeHeaderFieldGenerator 2015-12-22 11:48:34 +01:00
Jesús García Sáez 1529e7ec4e unittest: compare properly decimal numbers 2015-12-22 11:48:34 +01:00
Jesús García Sáez 2e1ed274c8 unittest: fix TestNGMailAddressParser
It had wrong expectation strings
2015-12-09 20:02:57 +01:00
Jesús García Sáez e4cd451be8 unittest: removed TestNGMimeAddressHeaderFieldGenerator
Needs redo
2015-12-09 20:02:56 +01:00
Javier Amor García 603da75818 Added test for spanish characters 2015-12-09 20:02:56 +01:00
Javier Amor García 9ed3812795 Added test for character escape 2015-12-09 20:02:55 +01:00
Javier Amor García a0b15d0c8c Test for [RTFHandler parseFontTable]
This changeset includes changes in relevant classes to make
them easier to test.
2015-12-09 20:02:55 +01:00
Javier Amor García 7e4571874e Added test for RTF with russian characters
Changed and refactored TestRTFHandler helper methods
2015-12-09 20:02:54 +01:00
Javier Amor García b076801e1b Added test fixture for RTF crash 6977 2015-12-09 20:02:54 +01:00
Jesús García Sáez 0316e441fc unittest: RTF without color table definition 2015-12-09 20:02:53 +01:00
Jesús García Sáez 75208428dd unittest: New unittest with a rtf file
This currently sigfault due to bad parsing a \*\shppict tag
with a \binXXXX tag inside it
2015-12-09 20:02:53 +01:00
Jesús García Sáez 942f48c9a0 unittest: RTF with \pict 2015-12-09 20:02:52 +01:00
Jesús García Sáez 24a7515bb5 unittest: file as NSData and try different encodings 2015-12-09 20:02:51 +01:00
Jesús García Sáez a8e5a3c025 unittest: NSString objectFromJSONString for single values 2015-12-09 20:02:51 +01:00
Jesús García Sáez 0b69727a49 unittest: add rtf test 2015-12-09 20:02:50 +01:00
Jesús García Sáez 2a2d141629 unittest: rtf, test crash core dump 2015-12-09 20:02:48 +01:00
Jesús García Sáez b98d112738 unittest: commented failing test 2015-12-09 20:02:28 +01:00
Ludovic Marcotte 01642eca3e (fix) fixed one unit test 2015-11-23 13:20:55 -05:00
Euan Thoms eda84c7b5d Stage1b (v2 branch) of clang compiler warning patches. 2015-11-06 01:29:26 +08:00
Ludovic Marcotte b378d258cb (fix) add unit test from PR #105 2015-10-23 15:54:33 -04:00
Francis Lachapelle ad8941ba56 Fix URL escaping unti test 2015-09-18 13:48:36 -04:00
Javier Amor García cbc3e3e97d Test for [NGMimeMessageGenerator generateDataForHeaderField:value:]
The NGMimeMessageGenerator can be found in sope
2015-09-01 09:09:54 +02:00
Javier Amor García 361d5ea3a6 Added method [SOGoTest stringFromDiffBetween:and:] 2015-09-01 09:09:54 +02:00
Jeroen Dekkers 6ded9e95b3 Put private libraries in /usr/lib/sogo 2014-10-01 20:36:42 +02:00
Ludovic Marcotte b05fcc7d82 Fat commit to refactor the quick record generation 2014-07-30 14:51:00 -04:00
Jeroen Dekkers efc33d8174 Fix unit test by also checking for the different gnustep 1.24 ordering of elements 2014-05-29 15:53:13 +02:00
Jeroen Dekkers 93971dc434 Add $(TEST_TOOL) as dependency of make check 2014-05-29 15:35:46 +02:00
Ludovic Marcotte 5739356f88 Fix tests to handle list-component 2014-04-09 19:27:38 -04:00
Francis Lachapelle e6e4616a69 Fix typo in unit test 2013-01-18 09:39:02 -05:00
Wolfgang Sourdeau 160aa42b88 set the "check" target as a non-default target 2012-11-07 09:49:46 -05:00
Wolfgang Sourdeau de381aca81 Added support for gnutls (thanks to Jeroen Dekkers). 2012-10-23 10:11:36 -04:00
Wolfgang Sourdeau f4c12f9658 Merge pull request #1 from dekkers/make-check
Implement a "make check" target that will run the unit tests (thanks to Jeroen Dekkers)
2012-10-20 12:39:39 -07:00
Wolfgang Sourdeau 948bafd2bf s/occurence/occurrence/g 2012-10-20 13:27:24 -04:00
Jeroen Dekkers a632c82b59 Implement a "make check" target that will run the unit tests 2012-10-19 18:46:46 +02:00
Jeroen Dekkers 439bb132c1 Add support for GnuTLS 2012-10-19 17:33:48 +02:00
Wolfgang Sourdeau f9d34ea6ec Monotone-Parent: 5626a85621c5f1c132d788ea29e164c8fc44cfdf
Monotone-Revision: cd39fe0df424d1e5afd5dcfa4b1c94ad707fed24

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T21:19:08
2012-04-23 21:19:08 +00:00
Wolfgang Sourdeau b8930b7bd0 Monotone-Parent: f44990050ab038029a3fa83c4918912da401bd4b
Monotone-Revision: 5626a85621c5f1c132d788ea29e164c8fc44cfdf

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T21:17:54
2012-04-23 21:17:54 +00:00
Wolfgang Sourdeau 067513959a Monotone-Parent: fbdbaedef2d0b93dc7ac828e0acfde7baccc8f6b
Monotone-Revision: f44990050ab038029a3fa83c4918912da401bd4b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T19:16:43
2012-04-23 19:16:43 +00:00
Wolfgang Sourdeau 65acbc5ecf Monotone-Parent: 389b194bd166895ce122d73e90c04eb48d06a6a1
Monotone-Revision: fbdbaedef2d0b93dc7ac828e0acfde7baccc8f6b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T18:39:26
2012-04-23 18:39:26 +00:00
Wolfgang Sourdeau 6aa627a800 Monotone-Parent: 2fb9aaf01f9b4a29e3d49d6c35deaf48a4e57e9c
Monotone-Revision: 825d6255230167e6f80d8015a569afa6bdb4cb7d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-16T15:24:16
2012-04-16 15:24:16 +00:00
Wolfgang Sourdeau 10bfd70be1 Monotone-Parent: 406832bc51a0849377951d10353a33568b33877b
Monotone-Revision: 2fb9aaf01f9b4a29e3d49d6c35deaf48a4e57e9c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-16T15:23:24
2012-04-16 15:23:24 +00:00
Wolfgang Sourdeau 966149f804 Monotone-Parent: 859bf2013653e0366336126b6d00368fe0dbc147
Monotone-Revision: ed35a0aec1eed0f78e69e747bdd6871d62118111

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-21T19:52:40
Monotone-Branch: ca.inverse.sogo
2012-02-21 19:52:40 +00:00
Wolfgang Sourdeau c255ce92fd Monotone-Parent: b84d2ade488d31149ffc7e1bd8b78b98c3331703
Monotone-Revision: 6e9bec6a824b22501c8cbc518a56410d6d896cb0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-13T15:09:06
Monotone-Branch: ca.inverse.sogo
2012-02-13 15:09:06 +00:00