MozillaQualityAssurance:Scratchpad:Places:DnD: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
Line 31: Line 31:
Here are some specific cases from [[https://bugzilla.mozilla.org/show_bug.cgi?id=332047#c4|Bug 33204]]:
Here are some specific cases from [[https://bugzilla.mozilla.org/show_bug.cgi?id=332047#c4|Bug 33204]]:


# Select Item A, and drag it up/down a few places by steps of 1.
* Select Item A, and drag it up/down a few places by steps of 1.
Item A should remain selected during the dragging process.
Item A should remain selected during the dragging process.


# Select Item A, and drag it into the empty white area of the tree (make sure the window is larger than the contents of the tree.
* Select Item A, and drag it into the empty white area of the tree (make sure the window is larger than the contents of the tree.
Item A is no longer selected, but is dropped at the end of the tree. (?)
Item A is no longer selected, but is dropped at the end of the tree. (?)


# Select Items A and B, and drag them up and down a few places by steps of 1.
* Select Items A and B, and drag them up and down a few places by steps of 1.
Items A and B should remain selected during the dragging process.
Items A and B should remain selected during the dragging process.


# Select Items A and D, and drag them up or down a few places by steps of 1.
* Select Items A and D, and drag them up or down a few places by steps of 1.
Items A and D should be dropped next to each other, and selected.
Items A and D should be dropped next to each other, and selected.


# Select Items A and D, and drag them in between Items B and C.
* Select Items A and D, and drag them in between Items B and C.
Items A and D should now be next to each other, selected, and in between Items B and C.
Items A and D should now be next to each other, selected, and in between Items B and C.


# Given a folder with items A, B, and C inside, followed by Items D and E outside the folder, drag Item B out of the folder and in between Items D and E.
* Given a folder with items A, B, and C inside, followed by Items D and E outside the folder, drag Item B out of the folder and in between Items D and E.
Item B should still be selected.
Item B should still be selected.


# Drag Item A, from Folder A, and drop it onto Folder B.
* Drag Item A, from Folder A, and drop it onto Folder B.
Since Item A is inserted at index = -1 inside Folder B, nothing is selected, and Item A is dropped at the bottom of Folder B.
Since Item A is inserted at index = -1 inside Folder B, nothing is selected, and Item A is dropped at the bottom of Folder B.


# Drag Item A, from inside Folder A to someplace inside Folder B.
* Drag Item A, from inside Folder A to someplace inside Folder B.
Item A is still selected.
Item A is still selected.


# Drag Items A and B, inside their respective Folders A and B, somewhere into the tree of the parent folder.
* Drag Items A and B, inside their respective Folders A and B, somewhere into the tree of the parent folder.
Items A and B should be next to each other, on the same level as Folders A and B, and selected.
Items A and B should be next to each other, on the same level as Folders A and B, and selected.



Revision as of 21:32, 6 August 2007

Drag 'N Drop Test Case Ideas

We need to expand the number of DnD cases for Firefox 3.

We should break these out by **Bookmarks Sidebar** and **Bookmarks Manager** cases. You can do a lot of stuff with the sidebar but not everything.

We need to consider the **Bookmarks Toolbar** as well.


Issues from Bugs

Dragging and dropping multiple items causes order of items to reverse. - **Test Case 4524**

  1. Select two or more bookmark items in the Bookmarks Manager
  2. Drag selection up (or down)

---

Drag and Drop bookmark and non-bookmark items in Bookmarks Manager - **Test Case 4526**

  1. Open the Bookmarks Manager.
  2. Arrange bookmarks so that you can select two or more items in a row including a bookmark, a folder, or a separator.
  3. Select two or more of these items.
  4. Drag selection up or down.

Verify:

  1. Verify that both items are dragged together.
  2. Verify that the ordering of the items is maintained.

---

List of Other Proposed Cases

Here are some specific cases from [33204]:

  • Select Item A, and drag it up/down a few places by steps of 1.

Item A should remain selected during the dragging process.

  • Select Item A, and drag it into the empty white area of the tree (make sure the window is larger than the contents of the tree.

Item A is no longer selected, but is dropped at the end of the tree. (?)

  • Select Items A and B, and drag them up and down a few places by steps of 1.

Items A and B should remain selected during the dragging process.

  • Select Items A and D, and drag them up or down a few places by steps of 1.

Items A and D should be dropped next to each other, and selected.

  • Select Items A and D, and drag them in between Items B and C.

Items A and D should now be next to each other, selected, and in between Items B and C.

  • Given a folder with items A, B, and C inside, followed by Items D and E outside the folder, drag Item B out of the folder and in between Items D and E.

Item B should still be selected.

  • Drag Item A, from Folder A, and drop it onto Folder B.

Since Item A is inserted at index = -1 inside Folder B, nothing is selected, and Item A is dropped at the bottom of Folder B.

  • Drag Item A, from inside Folder A to someplace inside Folder B.

Item A is still selected.

  • Drag Items A and B, inside their respective Folders A and B, somewhere into the tree of the parent folder.

Items A and B should be next to each other, on the same level as Folders A and B, and selected.

and from [381751]:

Testing single DnD scenarios:

  1. Drag from one position to another within the root folder
  2. Drag a bookmark one position up
  3. Drag a bookmark one position down
  4. Drag a bookmark two positions up
  5. Drag a bookmark two positions down
  6. Drag multiple bookmarks -- broken in mac, linux, see bug #336214

-

  1. Drag from one position to the bottom within the root folder
  2. Drag from the bottom to some position within the root folder

-

  1. Drag from one position to another within a subfolder
  2. Drag from one position to the bottom of a subfolder*
  3. Drag from the bottom of a subfolder to some position
  4. Drag from one position to the top of a subfolder*
  5. Drag from the top of a subfolder to some position

-

  1. Drag from the root folder to the middle of a subfolder
  2. Drag from the root folder to the top of a subfolder*
  3. Drag from the root folder to the bottom of a subfolder*

-

  1. Drag from subfolder A to subfolder B (any)
  2. Drag from the top of subfolder A to the bottom of subfolder B*
  3. Drag from the bottom of subfolder A to the top of subfolder B*