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 > Mail & News: Spell Check

Feature Test Spec: Mail and News Component

Mail and News Component: Spell Check

Updated by Esther Goes

References

UI Specifications: Spell Check Dialog Specification http://www.mozilla.org/editor/ui_specs/SpellCheckerDlg.html

Description

The user chooses it to initiate a spell check session. If there is a selection, the check applies to the selection in the document. If there is no selection, the entire content of the document is checked. Plain text and rich text mail compose windows are to be covered under POP, IMAP, and News.

Preferences and UI

This preference allows you to automatically spell check your mail message when you send the dialog.

  1. Open the mail & news message preferences and verify the following:
    1. Verify there is a spell check section.
    2. Verify the wording for this option says "Spell check messages before sending".
    3. Verify there is a check box to enable or disable the option.
    4. Verify you can enable this option.
    5. Verify the preference is persistent if you switch to another preference category then back.
    6. Verify the preference is persistent if you close the preference dialog.
    7. Exit seamonkey and view the prefs.js file. Verify the user pref statement is preference for this feature. e.g.
      user_pref("mail.SpellCheckBeforeSend", true);
    8. Verify you can disable this option through the user preference.
    9. Verify you can disable this option through the messages preferences.
  2. Verify the spell check can be started from the followings windows:
    1. Page Composer menu
    2. Page Composer toolbar
    3. Mail Compose window menu
    4. Page Composer toolbar
    5. Accelerator key
    6. Mnemonic
  3. Start a mail message and bring up the spell check dialog properties. Verify the following:
    1. Verify the title says, "Check Spelling".
    2. Verify there is an area that displays misspelled word.
    3. Verify there is a field where you can enter or choose from the suggested list a word that you can replace the misspelled word with.
    4. Verify there is a suggestion area that displays suggestions of possible spelling.
    5. Verify there is a language menu.
    6. Verify there are the following buttons:
      1. Check Word
      2. Ignore
      3. Ignore All
      4. Change
      5. Change All
      6. Add Word
      7. Edit
      8. Close
    7. Verify you have the typical windows properties (control button,etc.).
  4. In the spell check dialog, click on the Edit button to bring up the Personal Dictionary
    1. Verify the title says "Personal Dictionary".
    2. Verify there is a field where you can enter a new word or choose the suggested word.
    3. Verify there is an area that display words in the dictionary.
    4. Verify there are the following buttons:
      1. Add
      2. replace
      3. Remove
      4. Close
    5. Verify you have the typical windows properties (control button, re-size corner, etc.).
  5. Start a new message and don't type anything in the message. Bring up the spell check dialog. When the "Word" editbox is empty:
    1. Verify that the "Check Word" buttons is disabled.
    2. Verify that the "Add Word" buttons is disabled.

Basic Functionality

For each test case, start a mail message then spell check the message.

  1. Enter an e-mail recipient in the address pane but leave the rest of the message empty. Verify the spell check reports no misspelled words.
  2. Spell check a mail message with no spelling errors. For each case, verify the spell check reports no misspelled words.
    1. Leave the subject field and message body blank.
    2. Type in a subject field and leave the message body blank.
    3. Leave the subject field blank and type in something for the message body.
    4. Type in a space in the subject field and leave the message body blank.
    5. Leave the subject field blank and type in a space in the message body.
  3. Send a mail message with one misspelled word. For each case, verify the spell check reports misspelled words.
    1. Misspell a word in the subject field and leave the message body blank.
    2. Leave the subject field blank and misspell a word in the message body.
    3. Misspell a word in the subject field and in the message body.
  4. Verify you can close the spell check dialog without making any substitution.
  5. Verify you can cancel the spell check options by
    1. Clicking on the control button "x" on the top right corner.
    2. Clicking on the close button.
  6. Verify the misspelled word is displayed in the dialog.
    1. Misspell a word (such as communicate) in the subject field.
    2. Misspell a word (such as communicate) in the message body.
    3. Misspell a word in the subject field and message body. Verify the misspelled word in the subject field is found first.
  7. Verify a list of alternative spelling for a word is displayed for a misspelled word.
    1. Misspell the word "receive" by interchanging two letters, e.g. "recieve"
    2. Misspell the word "receive" by omitting a letter, e.g. receiv
    3. Misspell the word "receive" completely, e.g. xyzabcef. Verify no word suggestions appear.
  8. Highlight only a portion of your mail message. Verify only the highlighted portion of your mail message is spell checked.
    1. Highlight a single letter.
    2. Highlight a single word.
    3. Highlight a sentence.
    4. Highlight a paragraph.
    5. Highlight the entire message body.
    6. Highlight just the contents of the subject field.
    7. Highlight only part of a word.
  9. Quoted text. Verify that the quoted text is not spell check.
    1. Reply to a new message.
    2. Reply to all recipients on a new message.
    3. Paste text as quotation in a new message.
    4. Reply to a message that has multiple replies.
    5. Reply to a message that has plain text and rich text replies.
  10. Enter in a proper name not in the dictionary, such as Netcenter, five times in your mail message.
    1. Verify you can click on the ignore button to skip to the next word.
    2. Verify after ignoring the misspell word, it automatically finds the next misspelled word.
    3. Verify you can click on the ignore all button to skip all occurrence of this misspelled word..
    1. Verify once the end of the mail document is reach, spell check is done.
    2. Send the mail message and verify the changes were reflected in the received mail message.
    3. Press the recheck button, verify the word still shows up as misspelled.
  11. Repeat the above test but verify the following:
    1. Verify you can press replace button to substitute a misspelled word with an alternative word that you manually type in.
    2. Verify after replacing a misspell word, it automatically finds the next misspell word.
    3. Verify you can press replace all button to substitute all occurrences of this misspelled word with alternative word that you manually type in.
    4. Verify you can press replace all button to substitute all occurrences of this misspelled word with alternative word that the spell checker recommends.
    5. Verify once the end of the mail document is reach, spell check is done.
    6. Send the mail message and verify the changes were reflected in the received mail message.
  12. Misspell five different words and replace them with the recommended word.
    1. Send the mail message and verify the changes were reflected in the received mail message.
    2. Send later the mail message and verify the changes were reflected in the unsent message folder.
    3. Save the mail message as a draft and verify the changes were reflected in the draft folder.
    4. Save the mail message as a Template/Stationary and verify the changes were reflected in the Template/Stationary folder.
  13. Open the spell check personal dictionary and verify you can close this dialog
    1. Verify no changes have occurred in your mail compose window.
    2. Verify no words were added in your personal dictionary.
  14. Misspelled a word and add it the dictionary.
    1. Spell check a new mail message that contains the word you previously added word to the dictionary. Verify this word is not longer reported as being misspelled.
    2. After adding a word to the dictionary (without closing the spell check dialog) verify the word is not reported as being misspelled.
    3. Edit the personal dictionary and remove the previously added from the dictionary.
    4. Spell check a new mail message that contains the word you just deleted from the dictionary. Verify that the word is now reported as being misspelled.
  15. Misspell several words and add each misspelled word to the dictionary then open the personal dictionary.
    1. Verify you can replace an existing word in the dictionary.
    2. Verify you can not replace a report if the field "new word" is blank.
    3. Verify you can not add a word that already exist in the dictionary.
    4. Verify that extra spaces before or after the new word removed before being added to the dictionary.
  16. Enable the preference to spell check before sending. Try to send a mail message.
    1. This message contains no spelling errors. Verify the spell check dialog reports no misspelled words.
    2. This message has a proper name not in the dictionary, e.g. Netcenter. Verify you can ignore the changes and send the message.
    3. This message has a proper name not in the dictionary, e.g. Netcenter. Verify you can replace this word and send the message.
    4. This message is incomplete. You decide you want to continue editing the document. Verify you can cancel the spell check and send operation.
    5. You want to cancel spell check. Verify you can cancel the spell check by clicking the close box "x". Result: the message was not sent and you are returned to the message compose window.
    6. You want to cancel spell check. Verify you can cancel the spell check by clicking the cancel/close button. Result: the message was not sent and you are returned to the message compose window.
  17. Verify you can not undo a spell check operation.
  18. In the spell check dialog, change the language menu selection. (The language menu allows the user can change the dictionary against which the check is performed by changing a selection in the Language pop-up menu.)
    1. Verify the word is spelled checked against the selected language. (The number or types of languages is not yet determined).

Additional Tests

  1. Start spell checking from the current insert point (caret location) rather than the top of the document. (Feature TBD)
    1. Verify that spell check start from your insertion point.
    2. After reaching the end of the document, verify if spell checking continues from the top until the original insert point is reached.
  2. Add a word that already exist in the dictionary. Verify that this does not have an adverse effect.
  3. Spell check a mail message that contain various content including:
    1. Plain text
    2. Rich text
    3. Signature file
    4. Personal Vcard
    5. Inserted Images
    6. Attached binary file
    7. Attached text file
    8. Text contents less than 32k in size.
    9. Text contents greater than 32 or equal to 32k
  4. Start multiple compose windows.
    1. Open the spell check dialog and verify you can not open another spell check dialog while the dialog is still open in the other message.
    2. Verify you receive an warning message if you already have the spell check dialog open in another compose window.
  5. Spell check different length of a word.
    1. 1 character
    2. 2 characters
    3. 3 characters
    4. 4 characters
    5. 5 characters
    6. Greater than 5 characters but less than 11
    7. Greater than 10 characters but less than 21
    8. Greater than 20 characters but less than 30
    9. Greater than 128
    10. Less than 255 but greater than 250
    11. Greater than 255
  6. Try to add additional words as the Personal Dictionary has a file size of:
    1. 5k
    2. 10k
    3. under 32k
    4. 32k and over