Bug 902816 - Fix for intermittent browser_console_private_browsing.js | This test exceeded the timeout threshold. r=me, a=test-only
authorMihai Sucan <mihai.sucan@gmail.com>
Mon, 09 Sep 2013 14:41:54 +0300
changeset 154008 3965bfdc16310616c926e567e775919056260b7a
parent 154007 8827509ec6deb4cf462160b92c89a92b3e8fc461
child 154009 9988311c6dae009d00aaa5c73f7a98378b9584a5
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, test-only
bugs902816
milestone25.0a2
Bug 902816 - Fix for intermittent browser_console_private_browsing.js | This test exceeded the timeout threshold. r=me, a=test-only
browser/devtools/webconsole/test/browser_console_private_browsing.js
--- a/browser/devtools/webconsole/test/browser_console_private_browsing.js
+++ b/browser/devtools/webconsole/test/browser_console_private_browsing.js
@@ -10,16 +10,20 @@ function test()
 {
   const TEST_URI = "data:text/html;charset=utf8,<p>hello world! bug 874061" +
                    "<button onclick='console.log(\"foobar bug 874061\");" +
                    "fooBazBaz.yummy()'>click</button>";
   let ConsoleAPIStorage = Cu.import("resource://gre/modules/ConsoleAPIStorage.jsm", {}).ConsoleAPIStorage;
   let privateWindow, privateBrowser, privateTab, privateContent;
   let hud, expectedMessages, nonPrivateMessage;
 
+  // This test is slightly more involved: it opens the web console twice,
+  // a new private window once, and the browser console twice. We can get
+  // a timeout with debug builds on slower machines.
+  requestLongerTimeout(2);
   start();
 
   function start()
   {
     gBrowser.selectedTab = gBrowser.addTab("data:text/html;charset=utf8," +
                                            "<p>hello world! I am not private!");
     gBrowser.selectedBrowser.addEventListener("load", onLoadTab, true);
   }