Permalink
Browse files

Fix FBTest, the inline editor can be opened async on Mac

  • Loading branch information...
1 parent 35f65c5 commit d9dd73304b2be77d52f30d2218184472eb3c4812 @janodvarko janodvarko committed Oct 4, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 tests/content/html/5504/issue5504.js
@@ -11,9 +11,13 @@ function runTest()
var nodeBox = getSelectedNodeBox();
FBTest.executeContextMenuCommand(nodeBox, "htmlNewAttribute", function()
{
- var editor = panel.panelNode.getElementsByClassName("textEditorInner").item(0);
- FBTest.compare("", editor.value, "The default value must be an empty string");
- FBTest.testDone("issue5504.DONE");
+ // Wait till the inline editor is available.
+ var config = {tagName: "input", classes: "textEditorInner"};
+ FBTest.waitForDisplayedElement("html", config, function(editor)
+ {
+ FBTest.compare("", editor.value, "The default value must be an empty string");
+ FBTest.testDone("issue5504.DONE");
+ });
});
});
}

0 comments on commit d9dd733

Please sign in to comment.