a non working chat always ons creen test

pull/1097/merge
johnyma22 2012-10-09 02:59:45 +01:00
parent 38321a0e77
commit aee6cb673a
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
describe("chat always ons creen select", function(){
//create a new pad before each test run
beforeEach(function(cb){
helper.newPad(cb);
this.timeout(5000);
});
it("makes chat stick to right side of the screen", function(done) {
var inner$ = helper.padInner$;
var chrome$ = helper.padChrome$;
//click on the settings button to make settings visible
var $settingsButton = chrome$(".buttonicon-settings");
$settingsButton.click();
//get the chat selector
var $stickychatCheckbox = chrome$("#options-stickychat");
//select monospace and fire change event
$stickychatCheckbox.attr('selected','selected');
$stickychatCheckbox.change();
//check if chat changed to get the stickychat Class
var hasStickyChatClass = chrome$(".chatbox").hasClass("stickychat");
expect(hasStickyChatClass).to.be(true);
done();
});
});