Closed Bug 765235 Opened 12 years ago Closed 12 years ago

[New Tab Page] test suite should make use of underlying storages

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 16

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

Attachments

(1 file)

Attached patch patch v1Splinter Review
The about:newtab test suite should not inject its test data directly into NewTabUtils' objects. We should rather modify the DOMStorage values and add visits to the history service. This way we'll also get test coverage of the components responsible for handling those storages. Also, it's harder to create leaking tests that way. Those are the changes: * setPinnedLinks() does now write the value directly to the DOMStorage. * setLinks() operates asynchronously now and injects its links into places/history. * I needed to replace about:blank with http://example.com/ because the history service rejects about:blank URIs.
Attachment #633513 - Flags: review?(dao)
Attachment #633513 - Flags: review?(mak77)
Anyone, please?
Attachment #633513 - Flags: review?(mak77)
Attachment #633513 - Flags: review?(dao)
Attachment #633513 - Flags: review+
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 16
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Depends on: 780135
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: