Bug 1347270: Also rewrite browser_toolbariconcolor_restyles.js using restyleGeneration. r=bholley
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 31 May 2017 00:29:27 +0200
changeset 409530 81ec0f138ba42c1471761451378213bc7d574af3
parent 409529 bc65c7c5fd8044a897317989d602ef5540fe98b1
child 409531 33f0d0599bb9c611a1f92e2e484b80a1578ea15e
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1347270
milestone55.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 1347270: Also rewrite browser_toolbariconcolor_restyles.js using restyleGeneration. r=bholley MozReview-Commit-ID: FWNKPj0jODk
browser/base/content/test/performance/browser_toolbariconcolor_restyles.js
--- a/browser/base/content/test/performance/browser_toolbariconcolor_restyles.js
+++ b/browser/base/content/test/performance/browser_toolbariconcolor_restyles.js
@@ -23,30 +23,30 @@ add_task(async function test_toolbar_ele
 
   // Clear the focused element from each window so that when
   // we raise them, the focus of the element doesn't cause an
   // unrelated style flush.
   Services.focus.clearFocus(win1);
   Services.focus.clearFocus(win2);
 
   let utils1 = SpecialPowers.getDOMWindowUtils(win1);
-  restyles.win1.initial = utils1.elementsRestyled;
+  restyles.win1.initial = utils1.restyleGeneration;
 
   let utils2 = SpecialPowers.getDOMWindowUtils(win2);
-  restyles.win2.initial = utils2.elementsRestyled;
+  restyles.win2.initial = utils2.restyleGeneration;
 
   // switch back to 1st window, and snapshot elementsStyled
   Services.focus.activeWindow = win1;
-  restyles.win1.activate = utils1.elementsRestyled;
-  restyles.win2.deactivate = utils2.elementsRestyled;
+  restyles.win1.activate = utils1.restyleGeneration;
+  restyles.win2.deactivate = utils2.restyleGeneration;
 
   // switch back to 2nd window, and snapshot elementsStyled
   Services.focus.activeWindow = win2;
-  restyles.win2.activate = utils2.elementsRestyled;
-  restyles.win1.deactivate = utils1.elementsRestyled;
+  restyles.win2.activate = utils2.restyleGeneration;
+  restyles.win1.deactivate = utils1.restyleGeneration;
 
   is(restyles.win1.activate - restyles.win1.deactivate, 0,
       "No elements restyled when re-activating/deactivating a window");
   is(restyles.win2.activate - restyles.win2.deactivate, 0,
       "No elements restyled when re-activating/deactivating a window");
 
   await BrowserTestUtils.closeWindow(win1);
   await BrowserTestUtils.closeWindow(win2);