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: Test Case Matrix for Copy/Paste > Test Case Description for copy-from-dialog

Test Case Description for copy-from-dialog

Purpose

To determine whether cut/copy/paste works on text fields within dialog boxes and other UI windows.

Steps/Description

  • Mac OS
    1. With the mouse, select a text string within the browser window, and choose "Copy" from the Edit menu.
    2. From the Edit menu, choose Find on this Page...
    3. Press Command+V to paste the text.
    4. Press Command+A to select the just-pasted text
    5. Select the first three words of the line:
      ---> this very line <---
      ...and press Command+X to cut the text
    6. Press Command+A to select the remaining text, and choose "Delete" from the Edit menu to clear the text selection.
    7. Repeat steps 1-6, but do so using via control+click context menus, rather than through keyboard shortcuts.
    8. Repeat steps 1-6, but do so using Mozilla's menu bar, rather than keyboard shortcuts. (For bonus points, perform this step via a text field in a modal dialog, such as within Preferences.)
  • Windows
    1. With the mouse, select a text string within the browser window, and choose "Copy" from the Edit menu.
    2. From the Edit menu, choose Find on this Page...
    3. Press Control+V to paste the text.
    4. Press Control+A to select the just-pasted text
    5. Select the first three words of the line:
      ---> this very line <---
      ...and press Control+X to cut the text
    6. Press Control+A to select the remaining text, and choose Delete from the Edit menu to clear the text selection.
    7. Repeat steps 1-6, but do so using via context menus, rather than through keyboard shortcuts.
  • Linux
    1. With the mouse, select a text string within the browser window, and choose Copy from the Edit menu.
    2. From the Edit menu, choose Find on this Page...
    3. Press Alt+V to paste the text.
    4. Press Alt+A to select the just-pasted text
    5. Select the first three words of the line:
      ---> this very line <---
      ...and press Alt+X to cut the text
    6. Press Alt+A to select the remaining text, and click after the right edge of the text selection.
    7. Press the middle mouse button to paste the selected text.
    8. Presss Alt+A to select the contents of the text field
    9. Choose "Delete" from the Edit menu to clear the text selection.

Expected Results

  • Mac OS & Windows:

    Step 2: The "Find on Page" dialog should appear.
    Step 3: The copied text "this very line of text" should be pasted into the text field.
    Step 4: The text field contents should now be selected
    Step 5: The text field should now comprise: " of text"
    Step 6: The text field should now be empty.

  • Linux:

    Step 2: The "Find on Page" dialog should appear.
    Step 3: The copied text "this very line of text" should be pasted into the text field.
    Step 4: The text field contents should now be selected
    Step 5: The text field should now comprise: " of text"
    Step 6: The editing caret should exist to the right of the text " of text"
    Step 7: The text field should now contain " of text this very line"
    Step 8: The text field contents should now be selected
    Step 9: The text field should now be empty.