fix a test

This commit is contained in:
John McLear 2013-03-01 14:04:33 +00:00
parent 13c9b66e6e
commit 3460159f68
2 changed files with 9 additions and 4 deletions

View file

@ -100,8 +100,8 @@ describe("embed links", function(){
//open share dropdown
chrome$(".buttonicon-embed").click();
//check read only checkbox, a bit hacky
chrome$('#readonlyinput').attr('checked','checked').click().attr('checked','checked');
chrome$('#readonlyinput').click();
chrome$('#readonlyinput:checkbox:not(:checked)').attr('checked', 'checked');
//get the link of the share field + the actual pad url and compare them
var shareLink = chrome$("#linkinput").val();
@ -119,7 +119,9 @@ describe("embed links", function(){
//open share dropdown
chrome$(".buttonicon-embed").click();
//check read only checkbox, a bit hacky
chrome$('#readonlyinput').attr('checked','checked').click().attr('checked','checked');
chrome$('#readonlyinput').click();
chrome$('#readonlyinput:checkbox:not(:checked)').attr('checked', 'checked');
//get the link of the share field + the actual pad url and compare them
var embedCode = chrome$("#embedinput").val();
@ -129,5 +131,6 @@ describe("embed links", function(){
done();
});
});
});
});

View file

@ -17,9 +17,11 @@ describe("font select", function(){
var $viewfontmenu = chrome$("#viewfontmenu");
var $monospaceoption = $viewfontmenu.find("[value=monospace]");
console.log($monospaceoption);
//select monospace and fire change event
$monospaceoption.attr('selected','selected');
$viewfontmenu.change();
// $viewfontmenu.change();
//check if font changed to monospace
var fontFamily = inner$("body").css("font-family").toLowerCase();