Bug 1348639 - requestLongerTimeout for test browser_ext_optionsPage_browser_style.js; r=mattw,mixedpuppy
authorGeoff Brown <gbrown@mozilla.com>
Wed, 31 May 2017 07:38:27 -0600
changeset 361558 3eccf32d5a838447166427f391b0d5a929161a3c
parent 361557 4747ae7509f187cfea6b3b8d05c85cc566b4151b
child 361559 e8751019aaae4c7e330eea0be44fb5fa162ff2d3
push id31933
push userryanvm@gmail.com
push dateWed, 31 May 2017 18:33:05 +0000
treeherdermozilla-central@94906c37940c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattw, mixedpuppy
bugs1348639
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 1348639 - requestLongerTimeout for test browser_ext_optionsPage_browser_style.js; r=mattw,mixedpuppy
browser/components/extensions/test/browser/browser_ext_optionsPage_browser_style.js
--- a/browser/components/extensions/test/browser/browser_ext_optionsPage_browser_style.js
+++ b/browser/components/extensions/test/browser/browser_ext_optionsPage_browser_style.js
@@ -1,12 +1,14 @@
 /* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
 /* vim: set sts=2 sw=2 et tw=80: */
 "use strict";
 
+requestLongerTimeout(2);
+
 async function testOptionsBrowserStyle(optionsUI, assertMessage) {
   function optionsScript() {
     browser.test.onMessage.addListener((msgName, optionsUI, assertMessage) => {
       if (msgName !== "check-style") {
         browser.test.notifyFail("options-ui-browser_style");
       }
 
       let style = window.getComputedStyle(document.getElementById("button"));
@@ -47,19 +49,19 @@ async function testOptionsBrowserStyle(o
   let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser);
 
   await extension.startup();
   await extension.awaitMessage("options-ui-ready");
 
   extension.sendMessage("check-style", optionsUI, assertMessage);
   await extension.awaitFinish("options-ui-browser_style");
 
-  await extension.unload();
+  await BrowserTestUtils.removeTab(tab);
 
-  await BrowserTestUtils.removeTab(tab);
+  await extension.unload();
 }
 
 add_task(async function test_options_without_setting_browser_style() {
   await testOptionsBrowserStyle({
     "page": "options.html",
   }, "Expected correct style when browser_style is excluded");
 });