Permalink
Browse files

FBTest: fix test css/4411 on Mac (hide infotip at the right time)

  • Loading branch information...
1 parent 5c04697 commit c1b41ae8eb4d50c372d5590fffc6629a44b7d012 @janodvarko janodvarko committed Nov 7, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/content/css/4411/issue4411.js
View
6 tests/content/css/4411/issue4411.js
@@ -69,6 +69,7 @@ function executeTest(elementID, expectedValue, callback)
var rule = FW.FBL.getAncestorByClass(node, "cssRule");
var propValue = rule.getElementsByClassName("cssPropValue").item(0);
+ var propName = rule.getElementsByClassName("cssPropName").item(0);
var config = {tagName: "div", classes: "infoTipColorBox"};
FBTest.waitForDisplayedElement("stylesheet", config, function (infoTip)
@@ -84,6 +85,11 @@ function executeTest(elementID, expectedValue, callback)
"rule '" + elementID + "'.");
}
+ // Hide the info tip by moving mouse over the CSS prop name,
+ // otherwise it could block the mouse-move over the next CSS value.
+ // (fixex failure on Mac).
+ FBTest.mouseOver(propName);
+
callback();
});

0 comments on commit c1b41ae

Please sign in to comment.