Bug 1207490 - Part 3: Remove use of expression closure from browser/base/content/test/newtab/. r=Gijs

This commit is contained in:
Tooru Fujisawa 2015-09-23 17:56:40 +09:00
parent 392fa42967
commit 7595434f7e
2 changed files with 2 additions and 2 deletions

View File

@ -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 () {

View File

@ -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)