major restructering of the front end test framework

This commit is contained in:
Peter 'Pita' Martischka 2012-10-08 00:34:29 +02:00
parent 6587852138
commit ca6ebd6151
11 changed files with 267 additions and 120 deletions

View file

@ -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();
});
});