Bug 1167982 - Follow-up: Adjust test to charset detection for text/* attachments. r=me
authorJorg K <jorgk@jorgk.com>
Fri, 17 May 2019 10:56:39 +0200
changeset 26629 c7bb9e23894ad6a283070b19c7c7ffd64087abcb
parent 26628 7321cfcf8b65cff0723ab5f01b2e9d993ab1557a
child 26630 4516cf2270f464e5e8bc19fbf2b0ca6fff10ca58
push id15928
push usermozilla@jorgk.com
push dateFri, 17 May 2019 09:01:13 +0000
treeherdercomm-central@4516cf2270f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1167982
Bug 1167982 - Follow-up: Adjust test to charset detection for text/* attachments. r=me
mailnews/compose/test/unit/test_messageHeaders.js
--- a/mailnews/compose/test/unit/test_messageHeaders.js
+++ b/mailnews/compose/test/unit/test_messageHeaders.js
@@ -378,17 +378,17 @@ async function testContentHeaders() {
   await richCreateMessage(fields, [plainAttachment], identity);
   checkDraftHeaders(plainAttachmentHeaders, "2");
 
   let httpAttachment = makeAttachment({
     url: "data:text/html,<html></html>",
     name: "attachment.html",
   });
   let httpAttachmentHeaders = {
-    "Content-Type": "text/html",
+    "Content-Type": "text/html; charset=UTF-8",
     "Content-Disposition": "attachment; filename=\"attachment.html\"",
     "Content-Base": '"data:text/html,<html></html>"',
     "Content-Location": '"data:text/html,<html></html>"',
   };
   await richCreateMessage(fields, [httpAttachment], identity);
   checkDraftHeaders({
     "Content-Base": undefined,
     "Content-Location": undefined,