From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- .../compose/test/unit/data/429891_testcase.eml | 384 +++++++++++++++++++++ .../compose/test/unit/data/binary-after-plain.txt | Bin 0 -> 1527 bytes .../compose/test/unit/data/listexpansion.sql | 126 +++++++ comm/mailnews/compose/test/unit/data/message1.eml | 7 + comm/mailnews/compose/test/unit/data/shift-jis.eml | 13 + .../compose/test/unit/data/test-ISO-2022-JP.txt | 1 + .../compose/test/unit/data/test-KOI8-R.txt | 2 + .../compose/test/unit/data/test-SHIFT_JIS.txt | 1 + .../compose/test/unit/data/test-UTF-16BE.txt | Bin 0 -> 60 bytes .../compose/test/unit/data/test-UTF-16LE.txt | Bin 0 -> 60 bytes .../mailnews/compose/test/unit/data/test-UTF-8.txt | 1 + .../compose/test/unit/data/test-windows-1252.txt | 2 + 12 files changed, 537 insertions(+) create mode 100644 comm/mailnews/compose/test/unit/data/429891_testcase.eml create mode 100644 comm/mailnews/compose/test/unit/data/binary-after-plain.txt create mode 100644 comm/mailnews/compose/test/unit/data/listexpansion.sql create mode 100644 comm/mailnews/compose/test/unit/data/message1.eml create mode 100644 comm/mailnews/compose/test/unit/data/shift-jis.eml create mode 100644 comm/mailnews/compose/test/unit/data/test-ISO-2022-JP.txt create mode 100644 comm/mailnews/compose/test/unit/data/test-KOI8-R.txt create mode 100644 comm/mailnews/compose/test/unit/data/test-SHIFT_JIS.txt create mode 100644 comm/mailnews/compose/test/unit/data/test-UTF-16BE.txt create mode 100644 comm/mailnews/compose/test/unit/data/test-UTF-16LE.txt create mode 100644 comm/mailnews/compose/test/unit/data/test-UTF-8.txt create mode 100644 comm/mailnews/compose/test/unit/data/test-windows-1252.txt (limited to 'comm/mailnews/compose/test/unit/data') diff --git a/comm/mailnews/compose/test/unit/data/429891_testcase.eml b/comm/mailnews/compose/test/unit/data/429891_testcase.eml new file mode 100644 index 0000000000..b4fb4164c9 --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/429891_testcase.eml @@ -0,0 +1,384 @@ +From: Invalid User +To: =?UTF-8?B?RnLDqcOpZGxlLCBUZXN0?= +Subject: Big email + +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 +012345678901234567890123456789012345678901234567890123456789 diff --git a/comm/mailnews/compose/test/unit/data/binary-after-plain.txt b/comm/mailnews/compose/test/unit/data/binary-after-plain.txt new file mode 100644 index 0000000000..cec0697428 Binary files /dev/null and b/comm/mailnews/compose/test/unit/data/binary-after-plain.txt differ diff --git a/comm/mailnews/compose/test/unit/data/listexpansion.sql b/comm/mailnews/compose/test/unit/data/listexpansion.sql new file mode 100644 index 0000000000..6c4f6491be --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/listexpansion.sql @@ -0,0 +1,126 @@ +-- Address book with nested mailing lists for use in test_expandMailingLists.js. +PRAGMA user_version = 1; + +CREATE TABLE cards (uid TEXT PRIMARY KEY, localId INTEGER); +CREATE TABLE properties (card TEXT, name TEXT, value TEXT); +CREATE TABLE lists (uid TEXT PRIMARY KEY, localId INTEGER, name TEXT, nickName TEXT, description TEXT); +CREATE TABLE list_cards (list TEXT, card TEXT, PRIMARY KEY(list, card)); + +INSERT INTO cards (uid, localId) VALUES + ('813155c6-924d-4751-95d0-70d8e64f16bc', 1), -- homer + ('b2cc8395-d959-45e4-9516-17457adb16fa', 2), -- marge + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 3), -- bart + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 4), -- lisa + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 5), -- maggie + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', 6), --simpson + ('18204ef9-e4e3-4cd5-9981-604c69bbb9ee', 7), --marge + ('ad305609-3535-4d51-8c96-cd82d93aed46', 8), --family + ('4808121d-ebad-4564-864d-8f1149aa053b', 9), --kids + ('4926ff7a-e929-475a-8aa8-2baac994390c', 10), --parents + ('84fa4513-9b60-4379-ade7-1e4b48d67c84', 11), --older-kids + ('8e88b9a4-2500-48e0-bcea-b1fa4eab6b72', 12), --bad-kids + ('34e60324-4fb6-4f10-ab1b-333b07680228', 13); --bad-younger-kids + +INSERT INTO properties (card, name, value) VALUES + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'PrimaryEmail', 'homer@example.com'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'PhotoType', 'generic'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'LowercasePrimaryEmail', 'homer@example.com'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'DisplayName', 'Simpson'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'LastModifiedDate', '1473722922'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'PopularityIndex', '0'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'PreferMailFormat', '0'), + ('813155c6-924d-4751-95d0-70d8e64f16bc', 'PreferDisplayName', '1'), + + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'DisplayName', 'Marge'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'PrimaryEmail', 'marge@example.com'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'PhotoType', 'generic'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'LowercasePrimaryEmail', 'marge@example.com'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'LastModifiedDate', '1473723020'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'PopularityIndex', '0'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'PreferMailFormat', '0'), + ('b2cc8395-d959-45e4-9516-17457adb16fa', 'PreferDisplayName', '1'), + + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'PhotoType', 'generic'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'PopularityIndex', '0'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'PreferMailFormat', '0'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'PreferDisplayName', '1'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'DisplayName', 'Bart'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'PrimaryEmail', 'bart@foobar.invalid'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'LowercasePrimaryEmail', 'bart@foobar.invalid'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'SecondEmail', 'bart@example.com'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'LowercaseSecondEmail', 'bart@example.com'), + ('979f194e-49f2-4bbb-b364-598cdc6a7d11', 'LastModifiedDate', '1473716192'), + + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'PrimaryEmail', 'lisa@example.com'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'PhotoType', 'generic'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'LowercasePrimaryEmail', 'lisa@example.com'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'DisplayName', 'lisa@example.com'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'PopularityIndex', '0'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'PreferMailFormat', '0'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'LastModifiedDate', '0'), + ('4dd13a79-b70c-4b43-bdba-bacd4e977c1b', 'PreferDisplayName', '1'), + + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'DisplayName', 'Maggie'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'LastModifiedDate', '1473723047'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'PrimaryEmail', 'maggie@example.com'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'PhotoType', 'generic'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'LowercasePrimaryEmail', 'maggie@example.com'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'PopularityIndex', '0'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'PreferMailFormat', '0'), + ('c96402d7-1c7b-4242-a35c-b92c8ec9dfa2', 'PreferDisplayName', '1'), + + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', 'DisplayName', 'simpson'), + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', 'PrimaryEmail', 'simpson'), + ('18204ef9-e4e3-4cd5-9981-604c69bbb9ee', 'DisplayName', 'marge'), + ('18204ef9-e4e3-4cd5-9981-604c69bbb9ee', 'PrimaryEmail', 'marge'), + ('ad305609-3535-4d51-8c96-cd82d93aed46', 'DisplayName', 'family'), + ('ad305609-3535-4d51-8c96-cd82d93aed46', 'PrimaryEmail', 'family'), + ('4808121d-ebad-4564-864d-8f1149aa053b', 'DisplayName', 'kids'), + ('4808121d-ebad-4564-864d-8f1149aa053b', 'PrimaryEmail', 'kids'), + ('4926ff7a-e929-475a-8aa8-2baac994390c', 'DisplayName', 'parents'), + ('4926ff7a-e929-475a-8aa8-2baac994390c', 'PrimaryEmail', 'parents'), + ('84fa4513-9b60-4379-ade7-1e4b48d67c84', 'PrimaryEmail', 'older-kids'), + ('84fa4513-9b60-4379-ade7-1e4b48d67c84', 'DisplayName', 'older-kids'), + ('8e88b9a4-2500-48e0-bcea-b1fa4eab6b72', 'DisplayName', 'bad-kids'), + ('8e88b9a4-2500-48e0-bcea-b1fa4eab6b72', 'PrimaryEmail', 'bad-kids'), + ('34e60324-4fb6-4f10-ab1b-333b07680228', 'DisplayName', 'bad-younger-kids'), + ('34e60324-4fb6-4f10-ab1b-333b07680228', 'PrimaryEmail', 'bad-younger-kids'); + +INSERT INTO lists (uid, localId, name, nickName, description) VALUES + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', 1, 'simpson', '', ''), + ('18204ef9-e4e3-4cd5-9981-604c69bbb9ee', 2, 'marge', '', 'marges own list'), + ('ad305609-3535-4d51-8c96-cd82d93aed46', 3, 'family', '', ''), + ('4808121d-ebad-4564-864d-8f1149aa053b', 4, 'kids', '', ''), + ('4926ff7a-e929-475a-8aa8-2baac994390c', 5, 'parents', '', ''), + ('84fa4513-9b60-4379-ade7-1e4b48d67c84', 6, 'older-kids', '', ''), + ('8e88b9a4-2500-48e0-bcea-b1fa4eab6b72', 7, 'bad-kids', '', ''), + ('34e60324-4fb6-4f10-ab1b-333b07680228', 8, 'bad-younger-kids', '', ''); + +INSERT INTO list_cards (list, card) VALUES + -- simpson + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', '813155c6-924d-4751-95d0-70d8e64f16bc'), -- homer + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', 'b2cc8395-d959-45e4-9516-17457adb16fa'), -- marge + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', '979f194e-49f2-4bbb-b364-598cdc6a7d11'), -- bart + ('5ec12f1d-7ee9-403c-a617-48596dacbc18', '4dd13a79-b70c-4b43-bdba-bacd4e977c1b'), -- lisa + -- marge + ('18204ef9-e4e3-4cd5-9981-604c69bbb9ee', '813155c6-924d-4751-95d0-70d8e64f16bc'), -- homer + ('18204ef9-e4e3-4cd5-9981-604c69bbb9ee', 'b2cc8395-d959-45e4-9516-17457adb16fa'), -- marge + -- family + ('ad305609-3535-4d51-8c96-cd82d93aed46', '4926ff7a-e929-475a-8aa8-2baac994390c'), -- parents + ('ad305609-3535-4d51-8c96-cd82d93aed46', '4808121d-ebad-4564-864d-8f1149aa053b'), -- kids + -- parents + ('4926ff7a-e929-475a-8aa8-2baac994390c', '813155c6-924d-4751-95d0-70d8e64f16bc'), -- homer + ('4926ff7a-e929-475a-8aa8-2baac994390c', 'b2cc8395-d959-45e4-9516-17457adb16fa'), -- marge + ('4926ff7a-e929-475a-8aa8-2baac994390c', '4926ff7a-e929-475a-8aa8-2baac994390c'), -- parents + -- kids + ('4808121d-ebad-4564-864d-8f1149aa053b', '84fa4513-9b60-4379-ade7-1e4b48d67c84'), -- older-kids + ('4808121d-ebad-4564-864d-8f1149aa053b', 'c96402d7-1c7b-4242-a35c-b92c8ec9dfa2'), -- maggie + -- older-kids + ('84fa4513-9b60-4379-ade7-1e4b48d67c84', '4dd13a79-b70c-4b43-bdba-bacd4e977c1b'), -- lisa + ('84fa4513-9b60-4379-ade7-1e4b48d67c84', '979f194e-49f2-4bbb-b364-598cdc6a7d11'), -- bart + -- bad-kids + ('8e88b9a4-2500-48e0-bcea-b1fa4eab6b72', '84fa4513-9b60-4379-ade7-1e4b48d67c84'), -- older-kids + ('8e88b9a4-2500-48e0-bcea-b1fa4eab6b72', '34e60324-4fb6-4f10-ab1b-333b07680228'), -- bad-younger-kids + -- bad-younger-kids + ('34e60324-4fb6-4f10-ab1b-333b07680228', 'c96402d7-1c7b-4242-a35c-b92c8ec9dfa2'), -- maggie + ('34e60324-4fb6-4f10-ab1b-333b07680228', '8e88b9a4-2500-48e0-bcea-b1fa4eab6b72'); -- bad-kids diff --git a/comm/mailnews/compose/test/unit/data/message1.eml b/comm/mailnews/compose/test/unit/data/message1.eml new file mode 100644 index 0000000000..7913f5f262 --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/message1.eml @@ -0,0 +1,7 @@ +From: from_B@foo.invalid +To: to_B@foo.invalid +Subject: test mail + +this email is in dos format because that is what the interface requires + +test message diff --git a/comm/mailnews/compose/test/unit/data/shift-jis.eml b/comm/mailnews/compose/test/unit/data/shift-jis.eml new file mode 100644 index 0000000000..58f583907d --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/shift-jis.eml @@ -0,0 +1,13 @@ +To: test@example.com +From: test@example.com +Subject: ISO-2022-JP and 7bit containing =67 and hence looking like quoted-printable +Message-ID: <10a2aa17-e92f-417c-864e-575d4e371702@example.com> +Date: Tue, 3 Apr 2018 19:09:16 +0900 +User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 + Thunderbird/52.6.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=SHIFT-JIS; format=flowed +Content-Language: ja-JP +Content-Transfer-Encoding: 7bit + + diff --git a/comm/mailnews/compose/test/unit/data/test-ISO-2022-JP.txt b/comm/mailnews/compose/test/unit/data/test-ISO-2022-JP.txt new file mode 100644 index 0000000000..cd370be3f8 --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/test-ISO-2022-JP.txt @@ -0,0 +1 @@ +$B%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H%F%9%H(B diff --git a/comm/mailnews/compose/test/unit/data/test-KOI8-R.txt b/comm/mailnews/compose/test/unit/data/test-KOI8-R.txt new file mode 100644 index 0000000000..91f77cae45 --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/test-KOI8-R.txt @@ -0,0 +1,2 @@ + , , , , + . diff --git a/comm/mailnews/compose/test/unit/data/test-SHIFT_JIS.txt b/comm/mailnews/compose/test/unit/data/test-SHIFT_JIS.txt new file mode 100644 index 0000000000..7a7f267540 --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/test-SHIFT_JIS.txt @@ -0,0 +1 @@ +Shift_JIS̃eLXgt@CłB diff --git a/comm/mailnews/compose/test/unit/data/test-UTF-16BE.txt b/comm/mailnews/compose/test/unit/data/test-UTF-16BE.txt new file mode 100644 index 0000000000..dd5fd39ed2 Binary files /dev/null and b/comm/mailnews/compose/test/unit/data/test-UTF-16BE.txt differ diff --git a/comm/mailnews/compose/test/unit/data/test-UTF-16LE.txt b/comm/mailnews/compose/test/unit/data/test-UTF-16LE.txt new file mode 100644 index 0000000000..a13a8f09e1 Binary files /dev/null and b/comm/mailnews/compose/test/unit/data/test-UTF-16LE.txt differ diff --git a/comm/mailnews/compose/test/unit/data/test-UTF-8.txt b/comm/mailnews/compose/test/unit/data/test-UTF-8.txt new file mode 100644 index 0000000000..b5e9df9a45 --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/test-UTF-8.txt @@ -0,0 +1 @@ +测试文件 diff --git a/comm/mailnews/compose/test/unit/data/test-windows-1252.txt b/comm/mailnews/compose/test/unit/data/test-windows-1252.txt new file mode 100644 index 0000000000..a98046517a --- /dev/null +++ b/comm/mailnews/compose/test/unit/data/test-windows-1252.txt @@ -0,0 +1,2 @@ +Buenos das - Franois a t Paris - Budapester Strae, Berlin. +This is text in windows-1252. -- cgit v1.2.3