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 GoesReferences:
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
- Start with a new message composed in HTML.
- Type in some rich text and send the message.
- Verify the Content-Type is "text/html; charset=us-ascii"
- Verify the HTML comment read, "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">"
- 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
- Verify the time zone is correct for your region
- 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
- Verify the X-Mailer information is correct for the platform. Example: X-Mailer: Mozilla 4.5 [en]C-NSCP (Win98; U)
- Verify the X-Accept-Language is correct. Example: X-Accept-Language: en
- Verify the MIME-Verision is correct. Example: MIME-Version: 1.0
- Verify the message contents is in HTML and not plain text.
- Type in some rich text and the characters are not extended. Verify the Content-Transfer-Encoding is 7bit
- Type in some rich text with extended characters and send message. Verify the Content-Transfer-Encoding is still 7bit
- Type in some rich text and send the message.
- Reply to and in HTML (covered in Reply Quote test case)
- Forward in HTML (covered in Forward test case)
- Intelligent Send in Plain text (covered in Intelligent Send test case)
- 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
- Fonts - send a message containing each one of these fonts, verify
fonts send and receive correctly.
- Variable Width
- Fixed Width
- Helvetica, Arial
- Times
- Courier
- Size -send a message containing each one of these font sizes,
verify fonts send and receive correctly.
- Smaller
- larger
- x-small
- small
- medium
- large
- x-large
- xx-large
- Text Style -send a message containing each one of these font
styles, verify fonts send and receive correctly.
- Bold
- Italic
- Underline
- Strikethrough
- Supescript
- Subscript
- Fixed Width
- Nonbreaking
- Emphasis
- Strong Emphasis
- Citation
- Abbreviation
- Acronym
- Code
- Sample Output
- Variable
- Text Color - send a message containing each one of the font colors listed in the color chart, verify fonts send and receive correctly.
- Paragraph - send a message containing each one of these paragraph
styles , verify styles send and receive correctly.
- Body Text
- Paragraph
- Heading 1
- Heading 2
- Heading 3
- Heading 4
- Heading 5
- Heading 6
- Address
- Preformat
- Lists - send a message containing each one of these lists types ,
verify lists send and receive correctly.
- None
- Bulleted
- Numbered
- Term
- Definition
- Table - send a message containing a table, verify table send and
receive correctly.
- Insert Table
Editing HTML attributes
- Discontinuing and removing Text attributes with an HTML composition
window.
- Select text with an attribute and discontinue, verify the text is discontinued, send and receives correctly.
- Select text with a Link and discontinue, verify the link association is removed, send and receives correctly.
- Select a message that contains html with anchors, select edit as new, select Removed Named Anchors. Verify anchor is removed, send and receives correctly.
- Select a list, select List Properties, change the properties. Verify list changed, send and receives correctly.
- Indenting lists: - select a list to indent:
- Increase Indent, verify list indented to the right, send and receives correctly.
- Decrease Indent verify list indented to the left, send and receives correctly
- Align text, select text to align:
- Left, verify text move to the left, send and receives correctly
- Center, verify text is centered, send and receives correctly
- Right, verify text move to the right, send and receives correctly
- Justify, verify text is justified, send and receives correctly
- Table
- Insert- verify you can insert parts of a table, send and
reveives correctly
- Select- verify you can select a table or parts of a table, edit them. Sends and receives correclty
- Delete- verify you can select a table or parts of a table to be deleted, perform a delete. Sends and receives correctly.
- Insert- verify you can insert parts of a table, send and
reveives correctly
- Page colors and Backgrounds
- Readers default colors - exercise a few of these options.. Verify sends and receives correctly
- Custom colors - exercise a few of these options. Verify sends and receives correctly.
- Background image - exercise a few of these options. Verify
sends and receives correctly.
Fonts- Global Preference setting located under Appearance
- Verify you can change the default variable width font family (e.g.
Times to Helvetica)
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- Verify you can change the default variable width font size (e.g. 10
points to 18 points)
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
Colors - Global Preference setting located under Appearance|Colors|Text and Background
- Verify you can change the text color of the font.
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- Change the color setting back to the default color. Expected
result: Verify the text is displayed in the color that you
specified.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- Verify you can change the background color of the
message.
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- Change the color setting back to the default color. Expected
result: Verify the background is displayed in the color that you
specified.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- Verify the 'Use Windows colors' takes effect immediately (not sure how to test)
Links - Global Preference setting located under Appearance|Colors
- Verify you can change the color of the unvisited
link.
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- Change the color setting back to the default color. Expected
result: Verify the unvisited link is displayed in the color that
you specified.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- Verify you can change the color of the visited
links.
- 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.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- Change the color setting back to the default color. Expected
result: Verify the visited link is displayed in the color that you
specified.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- 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.
- Verify can change the option to underline the link or not
- Check the option to underline links. Expected results: Verify
all links are underlined
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- Uncheck the option to underline links. Expected results. Verify
all links are not underlined.
- View a new HTML message that has no replies/forward.
- View a HTML message that is a reply message.
- View a HTML message that is a forward message.
- Check the option to underline links. Expected results: Verify
all links are underlined
Compatibility (Test messages need to be generated)
- Compatibility with Communicator 6.2.2 (send a plain text message
with each of the following)
- Windows release, verify message is displayed correctly
- Mac release, verify message is displayed correctly
- Unix release,verify message is displayed correctly
- Compatibility with previous versions of CommunicatorC
- Communicator 4.79,verify message is displayed correctly
- Compatibility with Microsoft Application
- Outlook Express, verify message is displayed correctly
- Outlook 98,verify message is displayed correctly
- Compatibility with messages sent from Eudora (current version), verify message is displayed correctly
Preference - Wrapping Plain Text Compose & Message Display Plain Text Wrap
- Verify these Plain Text preferences have no affect on HTML messages.
ISO-8859-1, Character testing
- For each non-extended character, view an existing mail message that
contains that character
- Verify the non-extended character is displayed correctly
- View the Page Source, verify the non-extended character is displayed correctly
- For each extending character, view an existing mail message that
contains that character
- Verify the extended character is displayed correctly
- View the Page Source, verify the extended character name is displayed
Windows-1252, Character testing - characters in the 80 - 9F range.
- For each character, view an existing mail message that contains
that character
- Verify the character is displayed correctly
- View the Page Source, verify the character name is displayed correctly
MacRoman, Character testing
- For each non-extended character, view an existing mail message that
contains that character
- Verify the non-extended character is displayed correctly
- View the Page Source, verify the non-extended character is displayed correctly
- For each extending character, view an existing mail message that
contains that character
- Verify the extended character is displayed correctly
- View the Page Source, verify the extended character name is
displayed