testing: Google CardDAV + NOTE folding + colon escaping
Google CardDAV parser/encoder swallows white spaces, possibly because of the differences between vCard 2.1 and 3.0. It also escapes the colon although it shouldn't. Google is looking into this, so I am not trying to work out a workaround and merely remove the problematic fields (mostly NOTEs and one URL) to get the tests to pass.
This commit is contained in:
parent
3c5ea7e956
commit
cc8cb80398
1 changed files with 237 additions and 4 deletions
|
@ -1,4 +1,63 @@
|
|||
@@ -67,15 +67,6 @@
|
||||
@@ -1,7 +1,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user17
|
||||
-NOTE:triggers parser bug in Funambol 3.0: trailing = is mistaken for soft line break=
|
||||
FN:parserbug=
|
||||
N:parserbug=;;;;
|
||||
X-EVOLUTION-FILE-AS:parserbug=
|
||||
@@ -10,7 +9,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user16
|
||||
-NOTE:test case with empty email
|
||||
FN:incomplete
|
||||
N:incomplete;;;;
|
||||
EMAIL:
|
||||
@@ -20,10 +18,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user11
|
||||
-NOTE:This is a long line without any special characters. This is a simpler
|
||||
- example that should require folding in vcards. Does folding insert a crlf
|
||||
- before a space or does it insert crlf _plus_ a space? vCard 2.1 inserts
|
||||
- before a space\, 3.0 inserts line break plus space.
|
||||
FN:long line
|
||||
N:line;long;;;
|
||||
X-EVOLUTION-FILE-AS:line\, long
|
||||
@@ -32,7 +26,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user12
|
||||
-NOTE:ampersand entity &\; less-than entity <\;
|
||||
FN:xml entities
|
||||
N:xml;entities;;;
|
||||
X-EVOLUTION-FILE-AS:xml\, entities
|
||||
@@ -41,7 +34,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user13
|
||||
-NOTE:a colon is not a special character so here it comes : and not quoting necessary
|
||||
FN:colon
|
||||
N:colon;unquoted;;;
|
||||
X-EVOLUTION-FILE-AS:colon\, unquoted
|
||||
@@ -50,7 +42,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user14
|
||||
-NOTE:here are some quotation marks: single ' double " back ` - none of them is special
|
||||
FN:quotation marks
|
||||
N:marks;quotation;;;
|
||||
X-EVOLUTION-FILE-AS:marks\, quotation
|
||||
@@ -59,7 +50,6 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
NICKNAME:user15
|
||||
-NOTE:Spouse's Name: foobar
|
||||
FN:spouse name
|
||||
N:name;spouse;;;
|
||||
X-EVOLUTION-FILE-AS:spouse\, name
|
||||
@@ -67,15 +57,6 @@
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
|
@ -14,7 +73,19 @@
|
|||
URL:
|
||||
TITLE:
|
||||
ROLE:
|
||||
@@ -95,7 +86,6 @@
|
||||
@@ -83,19 +64,9 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user2
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:This user tests some of the advanced aspects of vcards:\n- non-ASCII c
|
||||
- haracters (with umlauts in the name)\n- line break (in this note and the
|
||||
- mailing address)\n- long lines (in this note)\n- special characters (in
|
||||
- this note)\n- tabs (in this note)\n\nVery long line\, very very long th
|
||||
- is time... still not finished... blah blah blah blah blah 1 2 3 4 5 6 7
|
||||
- 8 9 10 11 12 13 14 15 16\n\ncomma \,\ncolon :\nsemicolon \;\nbackslash
|
||||
- \\\n\nThe same\, in the middle of a line:\ncomma \, comma\ncolon : col
|
||||
- on\nsemicolon \; semicolon\nbackslash \\ backslash\n\nA tab tab done\n
|
||||
- line starts with tab
|
||||
FN:Umlaut Ä Ö Ü ß
|
||||
N:Ü;Ä;Ö;Umlaut;ß
|
||||
X-EVOLUTION-FILE-AS:Ü\, Ä
|
||||
|
@ -22,7 +93,25 @@
|
|||
X-EVOLUTION-BLOG-URL:
|
||||
CALURI:
|
||||
FBURL:
|
||||
@@ -156,8 +146,7 @@
|
||||
@@ -115,7 +86,6 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user8
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:Here are some special characters: comma \, colon : semicolon \;
|
||||
FN:special characters
|
||||
N:characters;special;;;
|
||||
X-EVOLUTION-FILE-AS:characters\, special
|
||||
@@ -136,9 +106,6 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user7
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:This test case uses line breaks. This is line 1.\nLine 2.\n\nLine brea
|
||||
- ks in vcard 2.1 are encoded as =0D=0A.\nThat means the = has to be encod
|
||||
- ed itself...
|
||||
FN:line breaks
|
||||
N:breaks;line;;;
|
||||
X-EVOLUTION-FILE-AS:breaks\, line
|
||||
@@ -156,8 +123,7 @@
|
||||
VERSION:3.0
|
||||
URL:http://john.doe.com
|
||||
TITLE:Senior Tester
|
||||
|
@ -32,7 +121,11 @@
|
|||
X-EVOLUTION-MANAGER:John Doe Senior
|
||||
X-EVOLUTION-ASSISTANT:John Doe Junior
|
||||
NICKNAME:user1
|
||||
@@ -170,11 +159,7 @@
|
||||
@@ -166,15 +132,10 @@
|
||||
X-TEST;PARAMETER1=nonquoted;PARAMETER2="quoted because of spaces":Content with\nMultiple\nText lines\nand national chars: äöü
|
||||
X-EVOLUTION-ANNIVERSARY:2006-01-09
|
||||
X-EVOLUTION-SPOUSE:Joan Doe
|
||||
-NOTE:This is a test case which uses almost all Evolution fields.
|
||||
FN:John Doe
|
||||
N:Doe;John;;;
|
||||
X-EVOLUTION-FILE-AS:Doe\, John
|
||||
|
@ -44,3 +137,143 @@
|
|||
X-EVOLUTION-VIDEO-URL:chat
|
||||
X-MOZILLA-HTML:TRUE
|
||||
ADR;TYPE=WORK:Test Box #2;;Test Drive 2;Test Town;Upper Test County;12346;O
|
||||
@@ -221,7 +182,6 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user5
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:image in JPG format
|
||||
FN:Ms. JPG
|
||||
N:;JPG;;Ms.;
|
||||
X-EVOLUTION-FILE-AS:JPG
|
||||
@@ -257,7 +217,6 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user4
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:image in PNG format
|
||||
FN:Mrs. PNG
|
||||
N:;PNG;;Mrs.;
|
||||
X-EVOLUTION-FILE-AS:PNG
|
||||
@@ -288,7 +247,6 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user6
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:The first name is "First \; special \;".
|
||||
FN:Mr. First \; special \; middle Last
|
||||
N:Last;First \; special \;;middle;Mr.;
|
||||
X-EVOLUTION-FILE-AS:Last\, First \; special \;
|
||||
@@ -309,7 +267,6 @@
|
||||
X-EVOLUTION-ASSISTANT:
|
||||
NICKNAME:user3
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:image in GIF format
|
||||
FN:Mr. GIF
|
||||
N:;GIF;;Mr.;
|
||||
X-EVOLUTION-FILE-AS:GIF
|
||||
@@ -329,107 +286,6 @@
|
||||
VERSION:3.0
|
||||
NICKNAME:user10
|
||||
X-EVOLUTION-SPOUSE:
|
||||
-NOTE:large vcard with plenty of special chars < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
- & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & < & <
|
||||
FN:large vcard
|
||||
N:;vcard;;large;
|
||||
X-EVOLUTION-FILE-AS:large
|
||||
|
|
Loading…
Reference in a new issue