Closed Bug 855190 Opened 12 years ago Closed 12 years ago

Use new async getCharsetForURI in /toolkit/components/places/tests/unit/test_bookmarks_json.js

Categories

(Toolkit :: Places, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: raymondlee, Assigned: marcos)

References

Details

Attachments

(1 file, 2 obsolete files)

Use new async PlacesUtils.getCharsetForURI in this test /toolkit/components/places/tests/unit/test_bookmarks_json.js
Assignee: nobody → marcos
Attached patch Use new getCharsetForURI. (obsolete) — Splinter Review
Hi. Here's a patch to close this bug. Let me know if it's OK. Thanks.
Attachment #730275 - Flags: review?(mak77)
Comment on attachment 730275 [details] [diff] [review] Use new getCharsetForURI. Review of attachment 730275 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/places/tests/unit/test_bookmarks_json.js @@ +232,4 @@ > } > + }).then(deferred.resolve); > + > + return deferred.promise; rather than defining a deferred and returning its promise, directly return Task.spawn(... so basically return the Task promise. Please also do the same here: http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/tests/unit/test_bookmarks_html.js#406
Attachment #730275 - Flags: review?(mak77) → feedback+
Status: NEW → ASSIGNED
Hi Marco, I've changed the patch so it directly returns Task.spawn instead of the deferred's promise. Let me know if it's ok. Cheers, Marcos.
Attachment #730275 - Attachment is obsolete: true
Attachment #736336 - Flags: review?
Attachment #736336 - Flags: review? → review?(mak77)
Comment on attachment 736336 [details] [diff] [review] Use new getCharsetForURI, return Task.spawn directly. Review of attachment 736336 [details] [diff] [review]: ----------------------------------------------------------------- it look ok! ::: toolkit/components/places/tests/unit/test_bookmarks_json.js @@ +121,4 @@ > break; > case "unfiled": > root = > + PlacesUtils.getFolderContents(PlacesUtils.unfiledBookmarksFolderId).root; these 3 indentation changes could be avoided
Attachment #736336 - Flags: review?(mak77) → review+
(In reply to Marco Bonardo [:mak] from comment #5) > Comment on attachment 736336 [details] [diff] [review] > Use new getCharsetForURI, return Task.spawn directly. > > Review of attachment 736336 [details] [diff] [review]: > ----------------------------------------------------------------- > > it look ok! > > ::: toolkit/components/places/tests/unit/test_bookmarks_json.js > @@ +121,4 @@ > > break; > > case "unfiled": > > root = > > + PlacesUtils.getFolderContents(PlacesUtils.unfiledBookmarksFolderId).root; > > these 3 indentation changes could be avoided Pushed to try and waiting for results https://tbpl.mozilla.org/?tree=Try&rev=fc7165d459f5 Please fix the indentation changes and mark this bug for check-in if it passes try tests.
Attachment #736336 - Attachment is obsolete: true
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: