mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
major restructering of the front end test framework
This commit is contained in:
parent
6587852138
commit
ca6ebd6151
11 changed files with 267 additions and 120 deletions
|
@ -1,13 +1,13 @@
|
|||
describe("bold button", function(){
|
||||
//create a new pad before each test run
|
||||
beforeEach(function(cb){
|
||||
this.timeout(5000);
|
||||
helper.newPad(cb);
|
||||
this.timeout(5000);
|
||||
});
|
||||
|
||||
it("makes text bold", function() {
|
||||
var inner$ = helper.jQueryOf("inner");
|
||||
var chrome$ = helper.jQueryOf("chrome");
|
||||
it("makes text bold", function(done) {
|
||||
var inner$ = helper.padInner$;
|
||||
var chrome$ = helper.padChrome$;
|
||||
|
||||
//get the first text element out of the inner iframe
|
||||
var $firstTextElement = inner$("div").first();
|
||||
|
@ -30,5 +30,7 @@ describe("bold button", function(){
|
|||
|
||||
//make sure the text hasn't changed
|
||||
expect($newFirstTextElement.text()).to.eql($firstTextElement.text());
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue