Closed Bug 561231 Opened 14 years ago Closed 6 years ago

Create a proper b-c test for copy/paste bookmarks

Categories

(Firefox :: Bookmarks & History, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 61
Tracking Status
firefox61 --- fixed

People

(Reporter: mak, Assigned: standard8)

References

Details

(Whiteboard: [fxsearch])

Attachments

(1 file)

We have a b-c test for copy in tags, we should have one more generic one selecting copying and pasting at least a couple bookmarks a separator and a folder to a new position
Flags: in-testsuite?
Flags: in-testsuite?
I think we have most of this already now. The only thing missing that I realised from code coverage is support for copying a separator from a separate instance, as well as doing an actual copy of bookmarks.

I already wrote a test for those in bug 1451352, but we closed it, and I forgot about landing those. So lets use this to complete the test coverage there.
Assignee: nobody → standard8
Priority: -- → P1
Whiteboard: [fxsearch]
Status: NEW → ASSIGNED
Comment on attachment 8966233 [details]
Bug 561231 - Add a test for copying a separator from another instance, and also copying bookmarks within the same instance.

https://reviewboard.mozilla.org/r/234982/#review241052

thanks, r=me with a green Try

::: browser/components/places/tests/browser/browser_paste_bookmarks.js:265
(Diff revision 1)
> +    "type": PlacesUtils.TYPE_X_MOZ_PLACE_SEPARATOR
> +  };
> +  data = JSON.stringify(data);
> +
> +  xferable.addDataFlavor(PlacesUtils.TYPE_X_MOZ_PLACE);
> +  xferable.setTransferData(PlacesUtils.TYPE_X_MOZ_PLACE, PlacesUtils.toISupportsString(data),

nit: indentation

::: browser/components/places/tests/browser/browser_paste_bookmarks.js:286
(Diff revision 1)
> +               "Should have the correct type");
> +
> +  await PlacesUtils.bookmarks.remove(tree.children[0].guid);
> +});
> +
> +// XXX fixme

hm?
Attachment #8966233 - Flags: review?(mak77) → review+
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2961729885f5
Add a test for copying a separator from another instance, and also copying bookmarks within the same instance. r=mak
https://hg.mozilla.org/mozilla-central/rev/2961729885f5
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: