mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
fix a test
This commit is contained in:
parent
13c9b66e6e
commit
3460159f68
2 changed files with 9 additions and 4 deletions
|
@ -100,8 +100,8 @@ describe("embed links", function(){
|
||||||
|
|
||||||
//open share dropdown
|
//open share dropdown
|
||||||
chrome$(".buttonicon-embed").click();
|
chrome$(".buttonicon-embed").click();
|
||||||
//check read only checkbox, a bit hacky
|
chrome$('#readonlyinput').click();
|
||||||
chrome$('#readonlyinput').attr('checked','checked').click().attr('checked','checked');
|
chrome$('#readonlyinput:checkbox:not(:checked)').attr('checked', 'checked');
|
||||||
|
|
||||||
//get the link of the share field + the actual pad url and compare them
|
//get the link of the share field + the actual pad url and compare them
|
||||||
var shareLink = chrome$("#linkinput").val();
|
var shareLink = chrome$("#linkinput").val();
|
||||||
|
@ -119,7 +119,9 @@ describe("embed links", function(){
|
||||||
//open share dropdown
|
//open share dropdown
|
||||||
chrome$(".buttonicon-embed").click();
|
chrome$(".buttonicon-embed").click();
|
||||||
//check read only checkbox, a bit hacky
|
//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
|
//get the link of the share field + the actual pad url and compare them
|
||||||
var embedCode = chrome$("#embedinput").val();
|
var embedCode = chrome$("#embedinput").val();
|
||||||
|
@ -129,5 +131,6 @@ describe("embed links", function(){
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,9 +17,11 @@ describe("font select", function(){
|
||||||
var $viewfontmenu = chrome$("#viewfontmenu");
|
var $viewfontmenu = chrome$("#viewfontmenu");
|
||||||
var $monospaceoption = $viewfontmenu.find("[value=monospace]");
|
var $monospaceoption = $viewfontmenu.find("[value=monospace]");
|
||||||
|
|
||||||
|
console.log($monospaceoption);
|
||||||
|
|
||||||
//select monospace and fire change event
|
//select monospace and fire change event
|
||||||
$monospaceoption.attr('selected','selected');
|
$monospaceoption.attr('selected','selected');
|
||||||
$viewfontmenu.change();
|
// $viewfontmenu.change();
|
||||||
|
|
||||||
//check if font changed to monospace
|
//check if font changed to monospace
|
||||||
var fontFamily = inner$("body").css("font-family").toLowerCase();
|
var fontFamily = inner$("body").css("font-family").toLowerCase();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue