Bug 1584986 - P3 - Correct the function in the test to fix the try failure; r=asuth
authorTom Tung <ttung@mozilla.com>
Wed, 02 Oct 2019 07:57:53 +0000
changeset 495992 62c234fbfdce6d66affaee66c69d384311c4b413
parent 495991 3cb9575de89a307c7efa0dfc4a71d6f953186cf3
child 495993 42913778b66ab0b1399372fb215a066cb97a62b1
push id114140
push userdvarga@mozilla.com
push dateWed, 02 Oct 2019 18:04:51 +0000
treeherdermozilla-inbound@32eb0ea893f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1584986
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1584986 - P3 - Correct the function in the test to fix the try failure; r=asuth Differential Revision: https://phabricator.services.mozilla.com/D47747
dom/quota/test/unit/head.js
dom/quota/test/unit/test_listOrigins.js
--- a/dom/quota/test/unit/head.js
+++ b/dom/quota/test/unit/head.js
@@ -198,20 +198,18 @@ function persist(principal, callback) {
 
 function persisted(principal, callback) {
   let request = SpecialPowers._getQuotaManager().persisted(principal);
   request.callback = callback;
 
   return request;
 }
 
-function listInitializedOrigins(callback) {
-  let request = SpecialPowers._getQuotaManager().listInitializedOrigins(
-    callback
-  );
+function listOrigins(callback) {
+  let request = SpecialPowers._getQuotaManager().listOrigins(callback);
   request.callback = callback;
 
   return request;
 }
 
 function installPackage(packageName) {
   let directoryService = Cc["@mozilla.org/file/directory_service;1"].getService(
     Ci.nsIProperties
--- a/dom/quota/test/unit/test_listOrigins.js
+++ b/dom/quota/test/unit/test_listOrigins.js
@@ -62,14 +62,14 @@ async function testSteps() {
 
   info("Creating test environment");
 
   await CreateTestEnvironment(origins);
 
   info("Getting origins after initializing the storage");
 
   await new Promise(resolve => {
-    listInitializedOrigins(req => {
+    listOrigins(req => {
       verifyResult(req.result, origins);
       resolve();
     });
   });
 }