browser_focus_steal_from_chrome.js cleanup
authorDão Gottwald <dao@mozilla.com>
Mon, 14 Dec 2009 11:07:36 +0100
changeset 35713 4b6e6432bd40562d7e54cb47360541ec2cec5313
parent 35712 f1742529aaa793c487e6a2e67664d3d1a9272701
child 35714 c961ea762a53c8c87e8d5c48372d61345480c22b
push id10690
push userdgottwald@mozilla.com
push dateMon, 14 Dec 2009 10:18:38 +0000
treeherdermozilla-central@c961ea762a53 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a1pre
browser_focus_steal_from_chrome.js cleanup
dom/tests/browser/browser_focus_steal_from_chrome.js
--- a/dom/tests/browser/browser_focus_steal_from_chrome.js
+++ b/dom/tests/browser/browser_focus_steal_from_chrome.js
@@ -46,18 +46,17 @@ function test() {
   let testingIndex = -1;
   let canRetry;
   let callback;
   let loadedCount;
 
   function runNextTest() {
     if (++testingIndex >= testingList.length) {
       // cleaning-up...
-      let cleanTab = gBrowser.addTab();
-      gBrowser.selectedTab = cleanTab;
+      gBrowser.addTab();
       for (let i = 0; i < tabs.length; i++) {
         gBrowser.removeTab(tabs[i]);
       }
       finish();
       return;
     }
     callback = doTest1;
     loadTestPage();