mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207490 - Part 3: Remove use of expression closure from browser/base/content/test/newtab/. r=Gijs
This commit is contained in:
parent
392fa42967
commit
7595434f7e
@ -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