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:
Tooru Fujisawa 2015-09-23 17:56:40 +09:00
parent e23d5a7901
commit 5290c82729
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)