diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /libkmime/tests/data/codec_quoted-printable | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkmime/tests/data/codec_quoted-printable')
8 files changed, 174 insertions, 0 deletions
diff --git a/libkmime/tests/data/codec_quoted-printable/basic-decode.quoted-printable b/libkmime/tests/data/codec_quoted-printable/basic-decode.quoted-printable new file mode 100644 index 000000000..47b7e654e --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/basic-decode.quoted-printable @@ -0,0 +1,9 @@ +=00=01=02=03=04=05=06=07=08=09 +=0B=0C=0D=0E=0F=10=11=12=13=14=15=16=17=18=19=1A=1B=1C=1D=1E=1F !"#$%&'()*+= +,-./0123456789:;<=3D>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrst= +uvwxyz{|}~=7F=80=81=82=83=84=85=86=87=88=89=8A=8B=8C=8D=8E=8F=90=91=92=93= +=94=95=96=97=98=99=9A=9B=9C=9D=9E=9F=A0=A1=A2=A3=A4=A5=A6=A7=A8=A9=AA=AB=AC= +=AD=AE=AF=B0=B1=B2=B3=B4=B5=B6=B7=B8=B9=BA=BB=BC=BD=BE=BF=C0=C1=C2=C3=C4=C5= +=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D2=D3=D4=D5=D6=D7=D8=D9=DA=DB=DC=DD=DE= +=DF=E0=E1=E2=E3=E4=E5=E6=E7=E8=E9=EA=EB=EC=ED=EE=EF=F0=F1=F2=F3=F4=F5=F6=F7= +=F8=F9=FA=FB=FC=FD=FE=FF
\ No newline at end of file diff --git a/libkmime/tests/data/codec_quoted-printable/basic-decode.quoted-printable.expected b/libkmime/tests/data/codec_quoted-printable/basic-decode.quoted-printable.expected Binary files differnew file mode 100644 index 000000000..c86626638 --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/basic-decode.quoted-printable.expected diff --git a/libkmime/tests/data/codec_quoted-printable/basic-encode b/libkmime/tests/data/codec_quoted-printable/basic-encode Binary files differnew file mode 100644 index 000000000..c86626638 --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/basic-encode diff --git a/libkmime/tests/data/codec_quoted-printable/basic-encode.expected b/libkmime/tests/data/codec_quoted-printable/basic-encode.expected new file mode 100644 index 000000000..47b7e654e --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/basic-encode.expected @@ -0,0 +1,9 @@ +=00=01=02=03=04=05=06=07=08=09 +=0B=0C=0D=0E=0F=10=11=12=13=14=15=16=17=18=19=1A=1B=1C=1D=1E=1F !"#$%&'()*+= +,-./0123456789:;<=3D>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrst= +uvwxyz{|}~=7F=80=81=82=83=84=85=86=87=88=89=8A=8B=8C=8D=8E=8F=90=91=92=93= +=94=95=96=97=98=99=9A=9B=9C=9D=9E=9F=A0=A1=A2=A3=A4=A5=A6=A7=A8=A9=AA=AB=AC= +=AD=AE=AF=B0=B1=B2=B3=B4=B5=B6=B7=B8=B9=BA=BB=BC=BD=BE=BF=C0=C1=C2=C3=C4=C5= +=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D2=D3=D4=D5=D6=D7=D8=D9=DA=DB=DC=DD=DE= +=DF=E0=E1=E2=E3=E4=E5=E6=E7=E8=E9=EA=EB=EC=ED=EE=EF=F0=F1=F2=F3=F4=F5=F6=F7= +=F8=F9=FA=FB=FC=FD=FE=FF
\ No newline at end of file diff --git a/libkmime/tests/data/codec_quoted-printable/corrupt.quoted-printable b/libkmime/tests/data/codec_quoted-printable/corrupt.quoted-printable new file mode 100644 index 000000000..ca67337f8 --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/corrupt.quoted-printable @@ -0,0 +1,28 @@ +Trailing spaces should be stripped: +Here, only five trailing spaces should appear: =20 +Trailing tabs should be stripped: +Here, only five trailing spaces should appear: =20 +Trailing mixture of tabs and spaces should be stripped: +Trailing mixture of tabs and spaces should be stripped: +Tab, space, space, tab: =09 +Space, tab, tab, space: =20 + +Trailing spaces should= + be stripped: +Trailing tabs should= + be stripped: +Trailing mixture of tabs= + and spaces= + should be stripped: +Tab, space, space, tab: = +Space, tab, tab, space: = +The end. + +A =3D wasn't properly encoded (should be kept): APE=MAN MAN=APE +A =3D wasn't properly encoded (lowercase): ape=man man=ape +Lowercase hexchars: =bb=a1=4b=44=45 =72=75=6c=65=7a=21=ab +Mixed-case hexchars: =Bb=A1=4B=44=45 =72=75=6C=65=7A=21=aB +A misplaced (unencoded =3D), followed by whitespace: = not at end! +Two consecutive =3D at the end of the line: == +Same, followed by trailing whitespace: == +A misplaced (unencoded =3D), as the ultimate character: =
\ No newline at end of file diff --git a/libkmime/tests/data/codec_quoted-printable/corrupt.quoted-printable.expected b/libkmime/tests/data/codec_quoted-printable/corrupt.quoted-printable.expected new file mode 100644 index 000000000..18993c21f --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/corrupt.quoted-printable.expected @@ -0,0 +1,20 @@ +Trailing spaces should be stripped: +Here, only five trailing spaces should appear: +Trailing tabs should be stripped: +Here, only five trailing spaces should appear: +Trailing mixture of tabs and spaces should be stripped: +Trailing mixture of tabs and spaces should be stripped: +Tab, space, space, tab: +Space, tab, tab, space: + +Trailing spaces should be stripped: +Trailing tabs should be stripped: +Trailing mixture of tabs and spaces should be stripped: +Tab, space, space, tab: Space, tab, tab, space: The end. + +A = wasn't properly encoded (should be kept): APE=MAN MAN=APE +A = wasn't properly encoded (lowercase): ape=man man=ape +Lowercase hexchars: »¡KDE rulez!« +Mixed-case hexchars: »¡KDE rulez!« +A misplaced (unencoded =), followed by whitespace: = not at end! +Two consecutive = at the end of the line: =Same, followed by trailing whitespace: =A misplaced (unencoded =), as the ultimate character: =
\ No newline at end of file diff --git a/libkmime/tests/data/codec_quoted-printable/wrap b/libkmime/tests/data/codec_quoted-printable/wrap new file mode 100644 index 000000000..49e8a9ccd --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/wrap @@ -0,0 +1,44 @@ +This is a line without a special char at the end. +This is a line with a space at the end. +This is a line with multiple spaces at the end. +This is a line with a tab at the end. +This is a line with an umlaut at the end.ä +This is a line with an umlaut and a space at the end.ä +This is a line with an umlaut and a tab at the end.ä +From This is a line with From at the beginning. +.This is a line with a dot at the beginning. +-This is a line with a dash at the beginning. + +This is a very long line (ä ) which just happens to be wrapped so that a From appears at the beginning of the second line. Furthermore, this break. makes a dot appear as the first character on the third line. + +Just long enough: xxxxxxxx This is a line without a special char at the end. +Just too long: xxxxxxxxxxxx This is a line without a special char at the end. +xxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line without a special char at the end. +xxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line without a special char at the end. + +Just long enough: xxxxxxxxxxxxxxx This is a line with a space at the end. +Just too long: xxxxxxxxxxxxxxxxxxx This is a line with a space at the end. +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a space at the end. +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a space at the end. + +Just long enough: xxxxxxxxxxxxxxxxx This is a line with a tab at the end. +Just too long: xxxxxxxxxxxxxxxxxxxxx This is a line with a tab at the end. +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a tab at the end. +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a tab at the end. + +Just long enough: xxxxxxxxxxxxx This is a line with an umlaut at the end.ä +Just too long: xxxxxxxxxxxxxxxxx This is a line with an umlaut at the end.ä +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with an umlaut at the end.ä +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with an umlaut at the end.ä + +Just long enough This is a line with an umlaut and a space at the end.ä +Just too long: xx This is a line with an umlaut and a space at the end.ä +xxxxxxxxxxxxxxxxxx This is a line with an umlaut and a space at the end.ä +xxxxxxxxxxxxxxxxxxx This is a line with an umlaut and a space at the end.ä + +Just long enough: This is a line with an umlaut and a tab at the end.ä +Just too long: xxxx This is a line with an umlaut and a tab at the end.ä +xxxxxxxxxxxxxxxxxxxx This is a line with an umlaut and a tab at the end.ä +xxxxxxxxxxxxxxxxxxxxx This is a line with an umlaut and a tab at the end.ä + +This line has a space at the end and ends the buffer
\ No newline at end of file diff --git a/libkmime/tests/data/codec_quoted-printable/wrap.expected b/libkmime/tests/data/codec_quoted-printable/wrap.expected new file mode 100644 index 000000000..b95c65523 --- /dev/null +++ b/libkmime/tests/data/codec_quoted-printable/wrap.expected @@ -0,0 +1,64 @@ +This is a line without a special char at the end. +This is a line with a space at the end.=20 +This is a line with multiple spaces at the end. =20 +This is a line with a tab at the end.=09 +This is a line with an umlaut at the end.=E4 +This is a line with an umlaut and a space at the end.=E4=20 +This is a line with an umlaut and a tab at the end.=E4=09 +=46rom This is a line with From at the beginning. +=2EThis is a line with a dot at the beginning. +=2DThis is a line with a dash at the beginning. + +This is a very long line (=E4 ) which just happens to be wrapped so that a = +=46rom appears at the beginning of the second line. Furthermore, this break= +=2E makes a dot appear as the first character on the third line. + +Just long enough: xxxxxxxx This is a line without a special char at the end. +Just too long: xxxxxxxxxxxx This is a line without a special char at the en= +d. +xxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line without a special char at the e= +nd. +xxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line without a special char at the = +end. + +Just long enough: xxxxxxxxxxxxxxx This is a line with a space at the end.=20 +Just too long: xxxxxxxxxxxxxxxxxxx This is a line with a space at the end.= +=20 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a space at the end.= +=20 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a space at the end= +=2E=20 + +Just long enough: xxxxxxxxxxxxxxxxx This is a line with a tab at the end.=09 +Just too long: xxxxxxxxxxxxxxxxxxxxx This is a line with a tab at the end.= +=09 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a tab at the end.= +=09 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with a tab at the end= +=2E=09 + +Just long enough: xxxxxxxxxxxxx This is a line with an umlaut at the end.=E4 +Just too long: xxxxxxxxxxxxxxxxx This is a line with an umlaut at the end.= +=E4 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with an umlaut at the end.= +=E4 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx This is a line with an umlaut at the end= +=2E=E4 + +Just long enough This is a line with an umlaut and a space at the end.=E4=20 +Just too long: xx This is a line with an umlaut and a space at the end.=E4= +=20 +xxxxxxxxxxxxxxxxxx This is a line with an umlaut and a space at the end.=E4= +=20 +xxxxxxxxxxxxxxxxxxx This is a line with an umlaut and a space at the end.= +=E4=20 + +Just long enough: This is a line with an umlaut and a tab at the end.=E4=09 +Just too long: xxxx This is a line with an umlaut and a tab at the end.=E4= +=09 +xxxxxxxxxxxxxxxxxxxx This is a line with an umlaut and a tab at the end.=E4= +=09 +xxxxxxxxxxxxxxxxxxxxx This is a line with an umlaut and a tab at the end.= +=E4=09 + +This line has a space at the end and ends the buffer=20
\ No newline at end of file |