Bug 1372261 - Make tps Talos test move each tab next to the blank 'palette-clenser' tab before switching, to avoid noise from the tab strip scrolling. r=rwood, a=test-only
authorMike Conley <mconley@mozilla.com>
Wed, 05 Jul 2017 15:59:41 -0400
changeset 414253 aa356698281c632b2f5660a645cf3fc1e1714129
parent 414252 d5d9a5a835e61e8c74b1279de7bd0f2e3eb21ffb
child 414254 78df8725c1cc9b924c52716e0703e7fc2d99c231
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrwood, test-only
bugs1372261
milestone55.0
Bug 1372261 - Make tps Talos test move each tab next to the blank 'palette-clenser' tab before switching, to avoid noise from the tab strip scrolling. r=rwood, a=test-only MozReview-Commit-ID: Kg4of1Kqm0e
testing/talos/talos/tests/tabswitch/bootstrap.js
--- a/testing/talos/talos/tests/tabswitch/bootstrap.js
+++ b/testing/talos/talos/tests/tabswitch/bootstrap.js
@@ -413,16 +413,17 @@ function test(window) {
       // would close the related content processes, and even if we kept them
       // alive it would be unlikely that the same pages end up in the same
       // content processes, so we cannot do this at the manifest level.
       yield switchToTab(tab);
       yield switchToTab(initialTab);
     }
 
     for (let tab of tabs) {
+      gBrowser.moveTabTo(tab, 1);
       yield forceGC(win, tab.linkedBrowser);
       let time = yield switchToTab(tab);
       dump(`${tab.linkedBrowser.currentURI.spec}: ${time}ms\n`);
       times.push(time);
       yield switchToTab(initialTab);
     }
 
     let output = '<!DOCTYPE html>'+