Bug 994011 - Intermittent browser_ruleview_refresh-on-attribute-change_02.js. a=test-only
authorPatrick Brosset <pbrosset@mozilla.com>
Thu, 10 Apr 2014 19:37:17 +0200
changeset 192944 daa9e5a292cabfd558b0e472693904e347c1810e
parent 192943 b4ddc9970bc77327ee8ff04f1b6afdd70eac233c
child 192945 406688602c35d2e7a55a78f4ab3b8e635bfee802
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs994011
milestone30.0a2
Bug 994011 - Intermittent browser_ruleview_refresh-on-attribute-change_02.js. a=test-only
browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_02.js
--- a/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_02.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_02.js
@@ -3,21 +3,22 @@
  http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 // Test that changing the current element's style attribute refreshes the rule-view
 
 let test = asyncTest(function*() {
   yield addTab("data:text/html;charset=utf-8,browser_ruleview_update.js");
-  let {toolbox, inspector, view} = yield openRuleView();
 
   content.document.body.innerHTML = '<div id="testid" class="testclass">Styled Node</div>';
   let testElement = getNode("#testid");
   testElement.setAttribute("style", "margin-top: 1px; padding-top: 5px;");
+
+  let {toolbox, inspector, view} = yield openRuleView();
   yield selectNode(testElement, inspector);
 
   yield testPropertyChanges(inspector, view, testElement);
   yield testPropertyChange0(inspector, view, testElement);
   yield testPropertyChange1(inspector, view, testElement);
   yield testPropertyChange2(inspector, view, testElement);
   yield testPropertyChange3(inspector, view, testElement);
   yield testPropertyChange4(inspector, view, testElement);