Bug 906693 - ""TypeError: inspector.once(...) is undefined" errors in green mochitest-bc runs". r=paul
authorDave Camp <dcamp@mozilla.com>
Mon, 19 Aug 2013 14:05:00 +0200
changeset 156177 c33806a517e8bd5aaa699dad255d5ba815fd1c61
parent 156108 cfa0c423b1d77755b206f194799a250263a75dac
child 156178 7ecc377b80ab1df3111cf89ecb920e91171f88e2
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs906693
milestone26.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 906693 - ""TypeError: inspector.once(...) is undefined" errors in green mochitest-bc runs". r=paul
browser/devtools/styleinspector/test/browser_ruleview_inherit.js
browser/devtools/styleinspector/test/browser_styleinspector_bug_672744_search_filter.js
--- a/browser/devtools/styleinspector/test/browser_ruleview_inherit.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_inherit.js
@@ -37,17 +37,17 @@ function simpleInherit(aInspector, aRule
     ok(!!inheritRule.inherited, "Rule should consider itself inherited.");
     is(inheritRule.textProps.length, 1, "Should only display one inherited style");
     let inheritProp = inheritRule.textProps[0];
     is(inheritProp.name, "color", "color should have been inherited.");
 
     styleNode.parentNode.removeChild(styleNode);
 
     emptyInherit();
-  }).then(null, console.error);
+  });
 }
 
 function emptyInherit()
 {
   // No inheritable styles, this rule shouldn't show up.
   let style = '' +
     '#test2 {' +
     '  background-color: green;' +
@@ -63,17 +63,17 @@ function emptyInherit()
     is(elementStyle.rules.length, 1, "Should have 1 rule.");
 
     let elementRule = elementStyle.rules[0];
     ok(!elementRule.inherited, "Element style attribute should not consider itself inherited.");
 
     styleNode.parentNode.removeChild(styleNode);
 
     elementStyleInherit();
-  }).then(null, console.error);
+  });
 }
 
 function elementStyleInherit()
 {
   doc.body.innerHTML = '<div id="test2" style="color: red"><div id="test1">Styled Node</div></div>';
 
   inspector.selection.setNode(doc.getElementById("test1"));
   inspector.once("inspector-updated", () => {
@@ -87,17 +87,17 @@ function elementStyleInherit()
     let inheritRule = elementStyle.rules[1];
     is(inheritRule.domRule.type, ELEMENT_STYLE, "Inherited rule should be an element style, not a rule.");
     ok(!!inheritRule.inherited, "Rule should consider itself inherited.");
     is(inheritRule.textProps.length, 1, "Should only display one inherited style");
     let inheritProp = inheritRule.textProps[0];
     is(inheritProp.name, "color", "color should have been inherited.");
 
     finishTest();
-  }).then(null, console.error);
+  });
 }
 
 function finishTest()
 {
   doc = null;
   gBrowser.removeCurrentTab();
   finish();
 }
--- a/browser/devtools/styleinspector/test/browser_styleinspector_bug_672744_search_filter.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_bug_672744_search_filter.js
@@ -32,17 +32,17 @@ function SI_inspectNode()
   var span = doc.querySelector("#matches");
   ok(span, "captain, we have the matches span");
 
   inspector.selection.setNode(span);
   inspector.once("inspector-updated", () => {
     is(span, computedView.viewedElement.rawNode(),
       "style inspector node matches the selected node");
     SI_toggleDefaultStyles();
-  }).then(null, (err) => console.error(err));
+  });
 }
 
 function SI_toggleDefaultStyles()
 {
   info("checking \"Browser styles\" checkbox");
 
   let doc = computedView.styleDocument;
   let checkbox = doc.querySelector(".includebrowserstyles");