mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 1207490 - Part 3: Remove use of expression closure from browser/base/content/test/newtab/. r=Gijs
--HG-- extra : commitid : 1kiJHjW0EcU extra : rebase_source : b94e1f379906e03053d3d7430f700aeaa614d40b
This commit is contained in:
parent
e23d5a7901
commit
5290c82729
@ -38,7 +38,7 @@ function addFakeVisits() {
|
||||
visits: visits
|
||||
};
|
||||
PlacesUtils.asyncHistory.updatePlaces(place, {
|
||||
handleError: function () ok(false, "couldn't add visit"),
|
||||
handleError: () => ok(false, "couldn't add visit"),
|
||||
handleResult: function () {},
|
||||
handleCompletion: function () {
|
||||
NewTabUtils.links.populateCache(function () {
|
||||
|
@ -270,7 +270,7 @@ function fillHistory(aLinks, aCallback = TestRunner.next) {
|
||||
};
|
||||
|
||||
PlacesUtils.asyncHistory.updatePlaces(place, {
|
||||
handleError: function () ok(false, "couldn't add visit to history"),
|
||||
handleError: () => ok(false, "couldn't add visit to history"),
|
||||
handleResult: function () {},
|
||||
handleCompletion: function () {
|
||||
if (--numLinks == 0 && aCallback)
|
||||
|
Loading…
Reference in New Issue
Block a user