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)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: raymondlee, Assigned: marcos)
References
Details
Attachments
(1 file, 2 obsolete files)
|
9.58 KB,
patch
|
Details | Diff | Splinter Review |
Use new async PlacesUtils.getCharsetForURI in this test
/toolkit/components/places/tests/unit/test_bookmarks_json.js
| Reporter | ||
Updated•12 years ago
|
Assignee: nobody → marcos
| Reporter | ||
Comment 1•12 years ago
|
||
Have a look at this as a reference
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/tests/unit/test_bookmarks_html.js#374
| Assignee | ||
Comment 2•12 years ago
|
||
Hi. Here's a patch to close this bug. Let me know if it's OK. Thanks.
Attachment #730275 -
Flags: review?(mak77)
Comment 3•12 years ago
|
||
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+
| Reporter | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•12 years ago
|
||
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?
Updated•12 years ago
|
Attachment #736336 -
Flags: review? → review?(mak77)
Comment 5•12 years ago
|
||
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+
| Reporter | ||
Comment 6•12 years ago
|
||
(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.
| Reporter | ||
Comment 7•12 years ago
|
||
Attachment #736336 -
Attachment is obsolete: true
| Reporter | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Keywords: checkin-needed
Comment 9•12 years ago
|
||
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.
Description
•