Bug 1402079 - browser/base/content/test/performance/browser_windowopen_reflows.js fails on different screen resolutions. r=mconley, a=test-only
authorJoel Maher <jmaher@mozilla.com>
Sun, 24 Sep 2017 17:33:07 -0400
changeset 431801 40f2d25d78c0ce6e23c932c27aae833916a2041b
parent 431800 b59f1cc4bd56e0bf39cc21aad008ea65ae95c791
child 431802 6c30508150f281e2a0fbd007939a511da2d22f84
push id7815
push userryanvm@gmail.com
push dateMon, 25 Sep 2017 00:04:04 +0000
treeherdermozilla-beta@40f2d25d78c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, test-only
bugs1402079
milestone57.0
Bug 1402079 - browser/base/content/test/performance/browser_windowopen_reflows.js fails on different screen resolutions. r=mconley, a=test-only
browser/base/content/test/performance/browser_windowopen_reflows.js
--- a/browser/base/content/test/performance/browser_windowopen_reflows.js
+++ b/browser/base/content/test/performance/browser_windowopen_reflows.js
@@ -90,18 +90,17 @@ if (Services.appinfo.OS == "WINNT" || Se
         "init@chrome://browser/content/browser-tabsintitlebar.js",
         "handleEvent@chrome://browser/content/tabbrowser.xml",
       ],
       times: 4, // This number should only ever go down - never up.
     },
   );
 }
 
-// Windows Vista, 7 or 8
-if (navigator.userAgent.indexOf("Windows NT 6") != -1) {
+if (Services.appinfo.OS == "WINNT" && screen.width <= 1280) {
   EXPECTED_REFLOWS.push(
     {
       stack: [
         "handleEvent@chrome://browser/content/tabbrowser.xml",
       ],
     },
   );
 }