Closed
Bug 776872
Opened 12 years ago
Closed 12 years ago
Remove calls to addVisit from the "bookmarks" folder
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: Paolo, Assigned: Paolo)
References
Details
Attachments
(1 file, 2 obsolete files)
20.61 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
This removes more addVisit calls in Places tests.
Assignee | ||
Comment 1•12 years ago
|
||
Easy changes here, though an indentation change makes the patch larger. In one
test, promises are used to wait for two asynchronous events regardless of the
order they are notified.
Attachment #645257 -
Flags: feedback?(mak77)
Assignee | ||
Updated•12 years ago
|
Attachment #645257 -
Flags: feedback?(mak77) → feedback?(dteller)
Updated•12 years ago
|
Attachment #645257 -
Flags: feedback?(dteller)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #645257 -
Attachment is obsolete: true
Attachment #683515 -
Flags: review?(mak77)
Comment 3•12 years ago
|
||
Comment on attachment 683515 [details] [diff] [review]
Updated patch
Review of attachment 683515 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/tests/bookmarks/test_async_observers.js
@@ +74,5 @@
> PlacesUtils.bookmarks.addObserver(observer, false);
>
> +add_task(function test_add_visit()
> +{
> + let observerPromise = observer.reset();
Ok, so .reset looks like the wrong name now... maybe .prepare(), .setup(), or .init()?
::: toolkit/components/places/tests/bookmarks/test_nsINavBookmarkObserver.js
@@ +290,5 @@
> { name: "guid", check: function (v) typeof(v) == "string" && /^[a-zA-Z0-9\-_]{12}$/.test(v) },
> { name: "parentGuid", check: function (v) typeof(v) == "string" && /^[a-zA-Z0-9\-_]{12}$/.test(v) },
> ] },
> ];
> + addVisits({ uri: uri, transition: TRANSITION_TYPED });
just use promiseAddvisits, I'd like to remove addVisits at a certain point, to have just one util
Attachment #683515 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #683515 -
Attachment is obsolete: true
Attachment #687069 -
Flags: feedback?(mak77)
Updated•12 years ago
|
Attachment #687069 -
Flags: feedback?(mak77) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Target Milestone: --- → mozilla20
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•