[Robocop] Tests for distribution bookmarks

NEW
Unassigned

Status

()

6 years ago
5 years ago

People

(Reporter: Margaret, Unassigned)

Tracking

Trunk
ARM
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Once bug 836450 lands, distributions can set default bookmarks by including a bookmarks.json file like this:

[
  {
    "title": "Queso",
    "title.en_US": "Cheese",
    "url": "http://queso.com/",
    "url.en_US": "http://cheese.com"
  },
  {
    "title": "Twitter",
    "url": "http://twitter.com/",
    "icon": "data:image/png;base64,..."
  }
]

We should make sure this works.

In anticipation of this, the testDistribution test added in bug 840825 is a ContentProviderTest. If we can figure out how to initialize the distribution before setting up BrowserProvider, we should be able to use the ContentProviderTest APIs to make sure the bookmarks showed up as expected. See testBrowserProvider for some good examples of testing bookmarks.
Needs tests for pinning.
Depends on: 848254
You need to log in before you can comment on or make changes to this bug.