Bug 1453898 - Change the l10n id used in browser_fluent mochitest. r=Pike
authorZibi Braniecki <zbraniecki@mozilla.com>
Tue, 17 Apr 2018 11:04:56 -0700
changeset 468015 9130155caf455de2a54dc95aab351af3388485b0
parent 468014 ec32f150fef754512c0f90b31287bbd5752a2d34
child 468016 b0c68c17915159517e82c04b26801ff3869f61be
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPike
bugs1453898
milestone61.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 1453898 - Change the l10n id used in browser_fluent mochitest. r=Pike MozReview-Commit-ID: JmyH7XKSWvl
browser/components/preferences/in-content/tests/browser_fluent.js
--- a/browser/components/preferences/in-content/tests/browser_fluent.js
+++ b/browser/components/preferences/in-content/tests/browser_fluent.js
@@ -19,30 +19,26 @@ add_task(async function() {
   }
 
   await Promise.all([
     openPreferencesViaOpenPreferencesAPI("general", {leaveOpen: true}),
     whenMainPaneLoadedFinished(),
   ]);
 
   let doc = gBrowser.contentDocument;
-  let win = gBrowser.contentWindow;
   await doc.l10n.ready;
 
-  let processCountPref = win.Preferences.get("dom.ipc.processCount");
-  let defaultProcessCount = processCountPref.defaultValue;
-
   let [ msg ] = await doc.l10n.formatMessages([
-    ["performance-default-content-process-count", { num: defaultProcessCount }]
+    ["category-general"],
   ]);
 
   let elem = doc.querySelector(
-    `#contentProcessCount > menupopup > menuitem[value="${defaultProcessCount}"]`);
+    `#category-general`);
 
   Assert.deepEqual(msg, {
     value: null,
     attributes: [
-      {name: "label", value: elem.getAttribute("label")}
+      {name: "tooltiptext", value: elem.getAttribute("tooltiptext")}
     ]
   });
 
   BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });