MozillaQualityAssurance:Scratchpad:Places:Editing Bookmarks
Editing Bookmarks
Cases for editing bookmarks in the bookmark manager but also for editing via context menu or keyboard commands in the sidebar.
Bookmarks Manager
- Bug 379952: Can't undo adding a separator
Bookmarks Sidebar
Suggestions from Bug 332047:
Test cases (for any link A, assume that link B is the item at the next tree index, by alphabetical order)
When testing, please note if a certain sequence of these test cases causes the selection to be restored incorrectly.
REMOVAL
- Remove Item A from the tree.
Item B (the item which was in row B, but is now in row A) should be selected.
- Remove items A and B from the tree.
Item C (the item which was in row C, but is now in row A) should be selected.
- Remove items A and C from the tree.
Item B (the item which was in row B, but is now in row A) should be selected.
- Delete the Item Z from the tree.
Item Y should be selected.
- Delete items V and Z from the tree.
Item W (which is now occupying row V) should be selected.
INSERTION
- Select Item A, and insert a new separator/item/folder.
The newly inserted Item B should be selected.
- Select Items A and C, and insert a new item.
The newly inserted Item D should be selected, and be inserted below Item C.
- Copy Items A, B, and C. Don't paste them, but instead click Item D and try to insert a new item.
The newly inserted item E should be the ONLY item selected. restoreSelection() should NOT try to highlight the same number of rows as the number of rows which were copied.
- Copy Items A and B, select Item D, and paste from the clipboard.
The newly pasted items A' and B', below Item D, should be selected.
- Copy Items A and B, click on Folder C, and paste from the clipboard.
The newly pasted items should not be selected (insertionpoint index == -1)