The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

Feature Test Spec

5.0 Project (seamonkey)
Mail and News Component
Reply and Quoting

Written by: Peter Mock

History:
01021998        Created
01091998        Update
01081999        Revised to match seamonkey spec
02202000    Posted to mozilla.org

References:    Composition UI spec
                         Master Messenger UI spec



Descriptions: This test spec focusing on the act of quoting a mail or news message. Replying to a mail message can follow under three general areas which include: 1) reply to plain text message, 2) reply to html message, and 3) reply to a mixture of plain text and html.

Preferences
Open the preference dialog controlling the how mail messages will be quoted.

  1. Verify there is a separate preference for quoting for mail and news (new)
  2. Verify under quoting option for mail,
    1. Verify there is an option to enable or disable quoting
    2. When quoting is enabled, verify you have the option to:
      1. start reply above quoted text
      2. start reply below quoted text
      3. start reply by selecting the quoted text
  3. Repeat the previous section for news.
  4. Verify the default behavior for mail is to start the reply above the quoted text.
  5. Verify the default behavior for news is to start the reply below the quoted text.


Replying to different message contents:

  1. Reply to the following Plain Text message. Verify the text is quoted correctly.
    1. Empty message area
    2. Space
    3. Multiple spaces
    4. Single character (non space)
    5. Word
    6. Sentence
    7. Paragraph
    8. Extended character (accented)
  2. Reply to the following HTML message. Verify the text is quoted correctly.
    1. Empty message area
    2. Space
    3. Multiple spaces
    4. Normal text
    5. Bold text
    6. Italic text
    7. Underline text
    8. Bold italic text
    9. Bullet list
    10. Number list
    11. Indented text
    12. Inserted image
    13. Table
    14. Color text
    15. Font size
Replying to Plain Text Messages
Set your default editor to use the plain text compose editor.
  1. Replied to a message with Message preference set to NOT to automatically quote the original message when replying.  Expected result: Verify the original text is not quoted.
    1. Reply to a Plain Text message using the Reply button then send
    2. Reply to a Plain Text message using the Reply All button then send
    3. Reply to a Plain Text message using the menu item to Reply then send
    4. Reply to a Plain Text message using the menu item Reply All then send
    5. Reply to a Plain Text message using the context menu to Reply then send
    6. Reply to a Plain Text message using the context menu to Reply All then send
    7. Reply to a forwarded Plain Text message using the Reply button then send
  2. Replied to a  message with Message preference set to automatically quote the original message when replying and to start my reply above the quoted text.  Expected results: 1) Verify the reply is above the quoted text.  2) Verify there is at least one blank line separating the reply and the new text.  and 3) Verify there is a character (such as a ">" character) indicating that text has been quoted
    1. Reply to a Plain Text message with one recipient using the Reply button then send.
    2. Reply to a Plain Text message with one recipient using the menu item Reply then send
    3. Reply to a Plain Text message with one recipient using the context menu to Reply then.
    4. Reply to a Plain Text message with multiple recipients using the Reply button then send
      1. Also verify there are multiple people listed in the To: field
    5. Reply to a Plain Text message with multiple recipients using the menu item Reply All then send
    6. Reply to a Plain Text message with multiple recipients using the context menu Reply All then send
    7. Reply to a forwarded Plain Text message using the Reply button then send
  3. Replied to a  message with Message preference set to automatically quote the original message when replying and to start my reply below the quoted text.  Expected results: 1) Verify the reply is below the quoted text.  2) Verify there is at least one blank line separating the reply and the new text.  and 3) Verify there is a character (such as a ">" character) indicating that text has been quoted
    1. Reply to a Plain Text message with one recipient using the Reply button then send.
    2. Reply to a Plain Text message with one recipient using the menu item Reply then send
    3. Reply to a Plain Text message with one recipient using the context menu to Reply then.
    4. Reply to a Plain Text message with multiple recipients using the Reply button then send
      1. Also verify there are multiple people listed in the To: field
    5. Reply to a Plain Text message with multiple recipients using the menu item Reply All then send
    6. Reply to a Plain Text message with multiple recipients using the context menu Reply All then send
    7. Reply to a forwarded Plain Text message using the Reply button then send


Reply to HTML Mail Messages
Repeat the above sections except reply to HTML mail messages and set your default editor to use the HTML compose editor.

  1. Replied to a message with Message preference set to NOT to automatically quote the original message when replying.  Expected result: Verify the original text is not quoted.
    1. Reply to a HTML message using the Reply button then send
    2. Reply to a HTML message using the Reply All button then send
    3. Reply to a HTML message using the menu item to Reply then send
    4. Reply to a HTML message using the menu item Reply All then send
    5. Reply to a HTML message using the context menu to Reply then send
    6. Reply to a HTML message using the context menu to Reply All then send
    7. Reply to a forwarded HTML message using the Reply button then send
  2. Replied to a  message with Message preference set to automatically quote the original message when replying and to start my reply above the quoted text.  Expected results: 1) Verify the reply is above the quoted text.  2) Verify there is at least one blank line separating the reply and the new text.  and 3) Verify there is a blue bar indicating that text has been quoted in HTML.
    1. Reply to a HTML message with one recipient using the Reply button then send.
    2. Reply to a HTML message with one recipient using the menu item Reply then send
    3. Reply to a HTML message with one recipient using the context menu to Reply then.
    4. Reply to a HTML message with multiple recipients using the Reply button then send
      1. Also verify there are multiple people listed in the To: field
    5. Reply to a HTML message with multiple recipients using the menu item Reply All then send
    6. Reply to a HTML message with multiple recipients using the context menu Reply All then send
    7. Reply to a forwarded HTML message using the Reply button then send
  3. Replied to a  message with Message preference set to automatically quote the original message when replying and to start my reply below the quoted text.  Expected results: 1) Verify the reply is below the quoted text.  2) Verify there is at least one blank line separating the reply and the new text.  and 3) Verify there is a blue bar indicating that text has been quoted in HTML.
    1. Reply to a HTML message with one recipient using the Reply button then send.
    2. Reply to a HTML message with one recipient using the menu item Reply then send
    3. Reply to a HTML message with one recipient using the context menu to Reply then.
    4. Reply to a HTML message with multiple recipients using the Reply button then send
      1. Also verify there are multiple people listed in the To: field
    5. Reply to a HTML message with multiple recipients using the menu item Reply All then send
    6. Reply to a HTML message with multiple recipients using the context menu Reply All then send
    7. Reply to a forwarded HTML message using the Reply button then send


Reply to a combination of the previous two test sections.

  1. Combination of the above.  Verify the message is quoted correctly and verify the message has been sent correctly.
    1. Reply to a HTML message using the Plain Text editor.
    2. Reply to a replied HTML message using the Plain Text editor.
    3. Reply to a replied Plain Text message using the Plain Text editor.
    4. Reply to a forwarded HTML message using the Plain Text editor.
    5. Reply to a Plain Text  message using the HTML editor.
    6. Reply to a replied Plain Text message using the HTML editor.
    7. Reply to a replied HTML message using the HTML editor.
    8. Reply to a forwarded Plain Text messages using the HTML editor.


Plain Text Quoting attributes (Automatic quoting is enabled for all tests.  These changes do not apply until you view a sent reply.)

  1. Verify the font style can be changed on the quoted text.
    1. Change the style setting to 'Bold' and send a reply to a Plain Text message.  Verify the quoted text is displayed as bold
    2. Change the style setting  to 'Bold Italic' and send a reply to a Plain Text message.  Verify the quoted text is displayed as bold italic
    3. Change the style setting to 'Regular' and send a reply to a Plain Text message.  Verify the quoted text is displayed as regular
    4. Change the style setting to 'Italic' and send a reply to a Plain Text message.  Verify the quoted text is displayed as italic
  2. Verify the font size can be changed on the quoted text.
    1. Change the size setting to 'Bigger' and send a reply to a Plain Text message.  Verify the quoted text is displayed with bigger font size
    2. Change the size setting to 'Smaller' and send a reply to a Plain Text message.  Verify the quoted text is displayed with smaller font size
    3. Change the size setting to 'Regular' and send a reply to a Plain Text message.  Verify the quoted text is displayed with regular font size
  3. Verify the font color can be changed on the quoted text.
    1. Change the color setting from the default color to another color then send a reply to a Plain Text message.  Verify the quoted text is displayed in the color that you specified
    2. Change the color setting to a different color then send a reply to a Plain Text message.  Verify the quoted text is displayed in the color that your specified
    3. Change the color setting back to the default color then send a reply to a Plain Text message.  Verify the quoted text is displayed in the color that your specified
  4. Verify the font width can change on the quoted text.
    1. Change the font width to Variable width font then send a reply to a Plain Text message.  Verify the quoted text is displayed to variable width.  (The width of the characters should be all different.)
    2. Change the font width to Fixed width font then send a reply to a Plain Text message.  Verify the quoted text is displayed to variable width.  (The width of the characters should be all the same.)


Fonts

  1. Verify you can change the default fixed width font family (e.g.  Courier New)
    1. Change the fixed 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 message should be changed but the font header remain unchanged.
      1. View a new Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text message that is a forward message.
    2. Change the fixed width font family back to the default font.  Expected result: Verify the text is displayed in the font that you specified.  The message should be changed but the font header remain unchanged.
      1. View a new Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text message that is a forward message.
  2. Verify you can change the default fixed width font size (e.g.  10 points to 18 points)
    1. Change the fixed 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 message should be changed but the font header remain unchanged.
      1. View a new Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text message that is a forward message.
    2. Change the fixed width font size back to the default size.  Expected result: Verify the text is displayed in the font size that you specified.  The message should be changed but the font header remain unchanged.
      1. View a new Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text message that is a forward message.


Colors

  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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text message that is a forward message.
  3. Verify the 'Use Windows colors' takes effect immediately  (not sure how to test)


Links

  1. Verify you can change the color of the un-visited link.
    1. Change the color setting from the default color to a different color.  Expected result: Verify the un-visited link is displayed in the color that you specified.
      1. View a new Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text message that is a forward message.
    2. Change the color setting back to the default color.  Expected result: Verify the un-visited link is displayed in the color that you specified.
      1. View a new Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.
      3. View a Plain Text 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 Plain Text message that has no replies/forward.
      2. View a Plain Text message that is a reply message.

      3. View a Plain Text message that is a forward message.
Message Wrapping
  1. Send yourself a new Plain Text message and set the preference to 72 characters.  Expected result: Verify the message is wrapped when viewed
    1. Type in a sentence greater than 72 characters and send.
    2. Type in a sentence less than 72 characters and send.
    3. Type in a sentence exactly 72 characters and send.
  2. Send yourself a new HTML message
    1. Verify the message wrapping preference is ignored
  3. Send yourself a new Plain Text message and set the preference to 10 characters.  Expected result: Verify the message is wrapped when viewed
    1. Type in a sentence greater than 10 characters and send.
    2. Type in a sentence less than 10 characters and send.
    3. Type in a sentence exactly 10 characters and send.
  4. Send yourself a new Plain Text message and set the preference to 101 characters.  Expected result: Verify the message is wrapped when viewed
    1. Type in a sentence greater than 101 characters and send.
    2. Type in a sentence less than 101 characters and send.
    3. Type in a sentence exactly 101 characters and send.
  5. Send yourself a reply to a Plain Text message that has sentences 72 characters long.  (Preference to 72 characters.)  Verify the reply to this message, the quoted text is wrapped cause the sentence to be broken onto the next line
  6. Send yourself a forward quote to a Plain Text message that has sentences 72 characters long.  (Preference to 72 characters.)  Verify the reply to this message, the quoted text is wrapped cause the sentence to be broken onto the next line
  7. If you receive long continuous line if characters (e.g. 500 chars), we do not wrap the long lines when quoting. We

  8. preserve the original line format.
  9. If you receive an long URL greater than what the preference, we should behave the same as Communicator 4.5


Additional Tests for Message Wrap

  1. Quoting & Wrap Long Lines vs View|Wrap Long Lines
    1. Verify View|Wrap Long Lines does not affect Quoting & Wrap Long Lines
    2. Verify View|Wrap Long Lines affects only viewing
    3. Verify View|Wrap Long Lines affects printing
  2. Quoting & Wrap Long Lines (test cases from Jefft to try)
    1. Quoting html to html & send as plain text
      1. As long as there are no hard line breaks (user hit return/enter on purpose) when converting html to plain text we will use the "wrap long lines at xx characters" preference for wrapping lines. If there are hard line breaks we doomed. A typical example: John sent a plain text message (with 72 line width) to Lisa. Lisa replied the plain text message to John and cc to Akkana in html message. Akkana replied the message and force to send as plain text to John with wrap long lines at 68 characters.
    2. Quoting plain text to html & send as plain text
      1. Quoting plain text to html does not reformat the original plain text message. Line formats are preserved via hard line breaks (<CR><LF>). Line formats are preserved via hard line breaks. Backend remembers the maximum line width of the original plain text message when force sending html to plain text message we compare the recorded maximum line width with the "wrap long lines at xx characters" preference. We use the largest number for wrapping the lines so we won't cause the long/short lines to appear. One could argue that we are not using the "wrap long lines" preference in this case. But, what do you want? Saving unfinished composition message as draft will preserve the maximum line width information. Please make sure to test this feature.
    3. Quoting html to plain text & send as plain text
      1. Quoting html to plain text we use the "wrap long lines at xx characters" preference to wrap lines. They appears in the plain  text editor with hard line breaks. Subsequent adding more text to the plain text editor will get wrapped according to the preference at the send time. This is a little bit odd. Quoting html into plain text gives you a kind of what you see is what you get feeling. But typing additional text does not. It depends on how big your window is and reformats the additional text to the setting of the preference at the send time. But, what can we do better?
    4. Quoting plain text to plain text & send as plain text
      1. Since plain text message come with hard line breaks quoting from plain text ot plain text the original message format are always preserved. Even with the much smaller "wrap long lines at xx characters" preference. As one can see if you receive a fairly long lines message, quote the message, add more text and send the plain text message you might see the following pattern:

      2.           > this is a very long line xxxxxxxxxx xxxxxxxxxxxxxxx yyyyyyyyyy zzzzzzzzzzzzzzzzzzzzzz
                  > this is a very long line xxxxxxxxxx xxxxxxxxxxxxxxx yyyyyyyyyy zzzzzzzzzzzzzzzzzzzzzz
                  > this is a very long line xxxxxxxxxx xxxxxxxxxxxxxxx yyyyyyyyyy zzzzzzzzzzzzzzzzzzzzzz

                  this has been wrapped according to
                  the preference. The preference is
                  set to a small number.

View|Wrap Long Lines (pertains to plain text messages that does not have carriage returns)  Use an application such as Mac Netscape 2.0 to send a message that does not auto wrap.  These tests applies to both Mail and News.
  1. View a message that does not wrap in the Message pane
    1. Verify the sentences trail off the screen
    2. Use the horizontal scroll bar to view the rest of the message
  2. View a message that does not wrap in the Message Window
    1. Verify the sentences trail off the screen
    2. Use the horizontal scroll bar to view the rest of the message
  3. Set the option to wrap long lines in the Message pane
    1. Verify that all the sentences are wrapped
    2. Verify that the horizontal scroll bar no longer appears
    3. Resize the Message pane
    4. Verify if the setting is persistent in the Message pane.  Verify if the setting still applies
      1. Navigate to another message in the current Message pane
      2. Close and re-open the Messenger Window and select the same message
      3. Open another Messenger Window
      4. Exit and re-launch Communicator and select the same message
  4. Set the option to wrap long lines in the Message Window
    1. Verify that all the sentences are wrapped
    2. Verify that the horizontal scroll bar no longer appears
    3. Resize the Message Window
    1. Verify if the setting is persistent in the Message Window.  Verify if the setting still applies
      1. Navigate to another message in the current Message Window
      2. Close and re-open the Message Window and select the same message
      3. Open another Message Window
      4. Exit and re-launch Communicator and select the same message
  5. Verify you can wrap long lines if the message contains no attachment
  6. Verify you can wrap long lines if the message contains an attachment
    1. Verify you can wrap long lines a message that has a file attachment
    2. Verify you can wrap long lines a message that has a Web attachment
    3. Verify you can wrap long lines a message that has a vcard attachment
    4. Verify you can wrap long lines a message that has a signature file
  7. Set the View option to not view attachments in line, verify the wrap long lines option still functions as expected
  8. Toggle the wrap long lines off and verify the setting takes effect

 
 
Copyright © 1998-2000 The Mozilla Organization.
Last modified February 21, 2000.