Bug 1449255: Part 14 - Rename test_bug753900 to test_crash_annotation_quoting.js. r=aswan
authorKris Maglione <maglione.k@gmail.com>
Tue, 27 Mar 2018 15:54:45 -0700
changeset 777725 5d30dc7438ffcd6c914f134b5dd00b2aa4c4681a
parent 777724 d78f1acdcfee5cac6c1af40d1d27a2d040a5a1ea
child 777726 5125dd8025bc00cab622fb31ba32bd2a2a073e46
push id105269
push userbmo:gl@mozilla.com
push dateThu, 05 Apr 2018 08:11:19 +0000
reviewersaswan
bugs1449255, 753900
milestone61.0a1
Bug 1449255: Part 14 - Rename test_bug753900 to test_crash_annotation_quoting.js. r=aswan MozReview-Commit-ID: H0KARZUfGjM
toolkit/mozapps/extensions/test/xpcshell/test_bug753900.js
toolkit/mozapps/extensions/test/xpcshell/test_crash_annotation_quoting.js
toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini
rename from toolkit/mozapps/extensions/test/xpcshell/test_bug753900.js
rename to toolkit/mozapps/extensions/test/xpcshell/test_crash_annotation_quoting.js
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug753900.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_crash_annotation_quoting.js
@@ -26,31 +26,23 @@ var addon4 = {
     id: "xpcshell@tests.mozilla.org",
     minVersion: "1",
     maxVersion: "1"
   }]
 };
 
 createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "1.9.2");
 
-const profileDir = gProfD.clone();
-profileDir.append("extensions");
+add_task(async function run_test() {
+  await promiseStartupManager();
 
-function run_test() {
-  do_test_pending();
-
-  writeInstallRDFForExtension(addon3, profileDir);
-  writeInstallRDFForExtension(addon4, profileDir);
-
-  startupManager();
+  await promiseInstallXPI(addon3);
+  await promiseInstallXPI(addon4);
 
-  AddonManager.getAddonsByIDs(["addon3@tests.mozilla.org",
-                               "addon4@tests.mozilla.org"],
-                               function([a3, a4]) {
+  let [a3, a4] = await AddonManager.getAddonsByIDs(["addon3@tests.mozilla.org",
+                                                    "addon4@tests.mozilla.org"]);
 
-    Assert.notEqual(a3, null);
-    do_check_in_crash_annotation(addon3.id, addon3.version);
-    Assert.notEqual(a4, null);
-    do_check_in_crash_annotation(addon4.id, addon4.version);
+  Assert.notEqual(a3, null);
+  do_check_in_crash_annotation(addon3.id, addon3.version);
 
-    executeSoon(do_test_finished);
-  });
-}
+  Assert.notEqual(a4, null);
+  do_check_in_crash_annotation(addon4.id, addon4.version);
+});
--- a/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini
+++ b/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini
@@ -88,24 +88,24 @@ skip-if = os == "win" # Bug 1358846
 # Bug 676992: test consistently fails on Android
 fail-if = os == "android"
 [test_bug619730.js]
 tags = blocklist
 [test_bug620837.js]
 tags = blocklist
 [test_bug655254.js]
 [test_bug740612.js]
-[test_bug753900.js]
 [test_cache_certdb.js]
 run-if = addon_signing
 [test_cacheflush.js]
 [test_childprocess.js]
 [test_compatoverrides.js]
 [test_corrupt.js]
 [test_corruptfile.js]
+[test_crash_annotation_quoting.js]
 [test_db_path.js]
 head =
 [test_default_providers_pref.js]
 [test_delay_update.js]
 [test_delay_update_webextension.js]
 skip-if = appname == "thunderbird"
 tags = webextensions
 [test_dependencies.js]