Bug 1086549 - Converting browser tests from removePage to History.remove. Patch by Yoric, updated by Standard8. r?mak draft
authorMark Banner <standard8@mozilla.com>
Wed, 08 Mar 2017 20:39:05 +0000
changeset 498329 a1f1e386c19f48f2865c961aa2eb816c99ffb1f7
parent 498328 3b3bd1869ba2beddc2aa5fd9fb433cbd9edae814
child 549116 95e49a65fa39de74fa37d8acde5b2b84e01d080a
push id49145
push userbmo:standard8@mozilla.com
push dateTue, 14 Mar 2017 15:05:49 +0000
reviewersmak
bugs1086549
milestone55.0a1
Bug 1086549 - Converting browser tests from removePage to History.remove. Patch by Yoric, updated by Standard8. r?mak MozReview-Commit-ID: BdRCP6DOHZS
browser/modules/test/unit/test_DirectoryLinksProvider.js
--- a/browser/modules/test/unit/test_DirectoryLinksProvider.js
+++ b/browser/modules/test/unit/test_DirectoryLinksProvider.js
@@ -1544,17 +1544,17 @@ add_task(function* test_DirectoryLinksPr
         resolve();
       };
     });
   }
 
   let testObserver = new UrlDeletionTester();
   DirectoryLinksProvider.addObserver(testObserver);
 
-  PlacesUtils.bhistory.removePage(NetUtil.newURI(landingUrl));
+  yield PlacesUtils.history.remove(landingUrl);
   yield testObserver.promise;
   DirectoryLinksProvider.removeObserver(testObserver);
   // views must be 2 and click should not exist
   do_check_eq(DirectoryLinksProvider._frequencyCaps[landingUrl].totalViews, 2);
   do_check_false(DirectoryLinksProvider._frequencyCaps[landingUrl].hasOwnProperty("clicked"));
 
   // verify that disk written data is kosher
   let data = yield readJsonFile(DirectoryLinksProvider._frequencyCapFilePath);