made test helpers more cross browser compatible

This commit is contained in:
Peter 'Pita' Martischka 2012-10-03 17:37:48 +01:00
parent ba4ebbba3b
commit 7aee98bce8
4 changed files with 79 additions and 56 deletions

View file

@ -5,14 +5,14 @@ describe("bold button", function(){
});
it("makes text bold", function() {
//get the inner iframe
//get the inner iframe
var $inner = testHelper.$getPadInner();
//get the first text element out of the inner iframe
var firstTextElement = $inner.find("div").first();
//select this text element
testHelper.selectText(firstTextElement[0]);
testHelper.selectText(firstTextElement[0], $inner);
//get the bold button and click it
var $boldButton = testHelper.$getPadChrome().find(".buttonicon-bold");