mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
made test helpers more cross browser compatible
This commit is contained in:
parent
ba4ebbba3b
commit
7aee98bce8
4 changed files with 79 additions and 56 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue