Skip to content

Commit

Permalink
Fix FBTest, the inline editor can be opened async on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Oct 4, 2012
1 parent 35f65c5 commit d9dd733
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/content/html/5504/issue5504.js
Expand Up @@ -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");
});
});
});
}
Expand Down

0 comments on commit d9dd733

Please sign in to comment.