You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: Mozilla MailNews Functional / UI Tests > Layout - HTML Message Display

Feature Test Spec: Mail and News Component

Mail and News Component: Layout - HTML Message Display

Written by Esther Goes

References:

Description:These tests apply to Mail and News. Format preference is set to use HTML editor to compose messages to use for this HTML message viewing. Testing the correctness and various preference settings as they apply to HTML message display.

Type of messages

  1. Start with a new message composed in HTML.
    1. Type in some rich text and send the message.
      1. Verify the Content-Type is "text/html; charset=us-ascii"
      2. Verify the HTML comment read, "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">"
      3. Verify the time stamp from the server is correct. Example: Received: from netscape.com ([208.12.40.134]) by dredd.mcom.com (Netscape Messaging Server 4.0) with ESMTP id F57EWQ01.8R8 for <pmock@netscape.com>; Thu, 7 Jan 1999 11:17:14 -0800
      4. Verify the time zone is correct for your region
      5. Verify the date stamp for the message that is used to displayed in the Thread pane is correct. Example: Date: Thu, 07 Jan 1999 11:17:13 -0800
      6. Verify the X-Mailer information is correct for the platform. Example: X-Mailer: Mozilla 4.5 [en]C-NSCP (Win98; U)
      7. Verify the X-Accept-Language is correct. Example: X-Accept-Language: en
      8. Verify the MIME-Verision is correct. Example: MIME-Version: 1.0
      9. Verify the message contents is in HTML and not plain text.
    2. Type in some rich text and the characters are not extended. Verify the Content-Transfer-Encoding is 7bit
    3. Type in some rich text with extended characters and send message. Verify the Content-Transfer-Encoding is still 7bit
  2. Reply to and in HTML (covered in Reply Quote test case)
  3. Forward in HTML (covered in Forward test case)
  4. Intelligent Send in Plain text (covered in Intelligent Send test case)
  5. Viewing messages. Expected results: Verify it displays the same in the Message Pane as well in the Message Window

HTML Quoting attributes (Covered in Reply Quote test case.)

HTML Attributes

  1. Fonts - send a message containing each one of these fonts, verify fonts send and receive correctly.
    1. Variable Width
    2. Fixed Width
    3. Helvetica, Arial
    4. Times
    5. Courier
  2. Size -send a message containing each one of these font sizes, verify fonts send and receive correctly.
    1. Smaller
    2. larger
    3. x-small
    4. small
    5. medium
    6. large
    7. x-large
    8. xx-large
  3. Text Style -send a message containing each one of these font styles, verify fonts send and receive correctly.
    1. Bold
    2. Italic
    3. Underline
    4. Strikethrough
    5. Supescript
    6. Subscript
    7. Fixed Width
    8. Nonbreaking
    9. Emphasis
    10. Strong Emphasis
    11. Citation
    12. Abbreviation
    13. Acronym
    14. Code
    15. Sample Output
    16. Variable
  4. Text Color - send a message containing each one of the font colors listed in the color chart, verify fonts send and receive correctly.
  5. Paragraph - send a message containing each one of these paragraph styles , verify styles send and receive correctly.
    1. Body Text
    2. Paragraph
    3. Heading 1
    4. Heading 2
    5. Heading 3
    6. Heading 4
    7. Heading 5
    8. Heading 6
    9. Address
    10. Preformat
  6. Lists - send a message containing each one of these lists types , verify lists send and receive correctly.
    1. None
    2. Bulleted
    3. Numbered
    4. Term
    5. Definition
  7. Table - send a message containing a table, verify table send and receive correctly.
    1. Insert Table

Editing HTML attributes

  1. Discontinuing and removing Text attributes with an HTML composition window.
    1. Select text with an attribute and discontinue, verify the text is discontinued, send and receives correctly.
    2. Select text with a Link and discontinue, verify the link association is removed, send and receives correctly.
    3. Select a message that contains html with anchors, select edit as new, select Removed Named Anchors. Verify anchor is removed, send and receives correctly.
    4. Select a list, select List Properties, change the properties. Verify list changed, send and receives correctly.
    5. Indenting lists: - select a list to indent:
      1. Increase Indent, verify list indented to the right, send and receives correctly.
      2. Decrease Indent verify list indented to the left, send and receives correctly
    6. Align text, select text to align:
      1. Left, verify text move to the left, send and receives correctly
      2. Center, verify text is centered, send and receives correctly
      3. Right, verify text move to the right, send and receives correctly
      4. Justify, verify text is justified, send and receives correctly
    7. Table
      1. Insert- verify you can insert parts of a table, send and reveives correctly
      2. Select- verify you can select a table or parts of a table, edit them. Sends and receives correclty
      3. Delete- verify you can select a table or parts of a table to be deleted, perform a delete. Sends and receives correctly.
    8. Page colors and Backgrounds
      1. Readers default colors - exercise a few of these options.. Verify sends and receives correctly
      2. Custom colors - exercise a few of these options. Verify sends and receives correctly.
      3. Background image - exercise a few of these options. Verify sends and receives correctly.

Fonts- Global Preference setting located under Appearance

  1. Verify you can change the default variable width font family (e.g. Times to Helvetica)
    1. Change the variable width font family from the default font to a different font. Expected result: Verify the text is displayed in the font that you specified. The font header and message should be changed.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Change the variable width font family back to the default font. Expected result: Verify the text is displayed in the font that you specified. The font header and message should be changed.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
  2. Verify you can change the default variable width font size (e.g. 10 points to 18 points)
    1. Change the variable width font size from the default size to a different size. Expected result: Verify the text is displayed in the font size that you specified. The font header and message should be changed.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Change the variable width font size back to the default size. Expected result: Verify the text is displayed in the font size that you specified. The font header and message should be changed.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.

Colors - Global Preference setting located under Appearance|Colors|Text and Background

  1. Verify you can change the text color of the font.
    1. Change the color setting from the default color to a different color. Expected result: Verify the text is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Change the color setting back to the default color. Expected result: Verify the text is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
  2. Verify you can change the background color of the message.
    1. Change the color setting from the default color to a different color. Expected result: Verify the background is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Change the color setting back to the default color. Expected result: Verify the background is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
  3. Verify the 'Use Windows colors' takes effect immediately (not sure how to test)

Links - Global Preference setting located under Appearance|Colors

  1. Verify you can change the color of the unvisited link.
    1. Change the color setting from the default color to a different color. Expected result: Verify the unvisited link is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Change the color setting back to the default color. Expected result: Verify the unvisited link is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
  2. Verify you can change the color of the visited links.
    1. Change the color setting from the default color to a different color. Expected result: Verify the visited link is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Change the color setting back to the default color. Expected result: Verify the visited link is displayed in the color that you specified.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
  3. Verify can change the option to underline the link or not
    1. Check the option to underline links. Expected results: Verify all links are underlined
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.
    2. Uncheck the option to underline links. Expected results. Verify all links are not underlined.
      1. View a new HTML message that has no replies/forward.
      2. View a HTML message that is a reply message.
      3. View a HTML message that is a forward message.

Compatibility (Test messages need to be generated)

  1. Compatibility with Communicator 6.2.2 (send a plain text message with each of the following)
    1. Windows release, verify message is displayed correctly
    2. Mac release, verify message is displayed correctly
    3. Unix release,verify message is displayed correctly
  2. Compatibility with previous versions of CommunicatorC
    1. Communicator 4.79,verify message is displayed correctly
  3. Compatibility with Microsoft Application
    1. Outlook Express, verify message is displayed correctly
    2. Outlook 98,verify message is displayed correctly
  4. Compatibility with messages sent from Eudora (current version), verify message is displayed correctly

Preference - Wrapping Plain Text Compose & Message Display Plain Text Wrap

  1. Verify these Plain Text preferences have no affect on HTML messages.

ISO-8859-1, Character testing

  1. For each non-extended character, view an existing mail message that contains that character
    1. Verify the non-extended character is displayed correctly
    2. View the Page Source, verify the non-extended character is displayed correctly
  2. For each extending character, view an existing mail message that contains that character
    1. Verify the extended character is displayed correctly
    2. View the Page Source, verify the extended character name is displayed

Windows-1252, Character testing - characters in the 80 - 9F range.

  1. For each character, view an existing mail message that contains that character
    1. Verify the character is displayed correctly
    2. View the Page Source, verify the character name is displayed correctly

MacRoman, Character testing

  1. For each non-extended character, view an existing mail message that contains that character
    1. Verify the non-extended character is displayed correctly
    2. View the Page Source, verify the non-extended character is displayed correctly
  2. For each extending character, view an existing mail message that contains that character
    1. Verify the extended character is displayed correctly
    2. View the Page Source, verify the extended character name is displayed