mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
language test should pass int ravis now
This commit is contained in:
parent
28cd6e64b3
commit
aebf6ee1e8
1 changed files with 18 additions and 4 deletions
|
@ -1,10 +1,19 @@
|
||||||
|
function deletecookie(name) {
|
||||||
|
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
||||||
|
}
|
||||||
|
|
||||||
describe("Language select and change", function(){
|
describe("Language select and change", function(){
|
||||||
|
// Destroy language cookies
|
||||||
|
deletecookie("language", null);
|
||||||
|
|
||||||
//create a new pad before each test run
|
//create a new pad before each test run
|
||||||
beforeEach(function(cb){
|
beforeEach(function(cb){
|
||||||
helper.newPad(cb);
|
helper.newPad(cb);
|
||||||
this.timeout(60000);
|
this.timeout(60000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Destroy language cookies
|
||||||
|
|
||||||
it("makes text german", function(done) {
|
it("makes text german", function(done) {
|
||||||
var inner$ = helper.padInner$;
|
var inner$ = helper.padInner$;
|
||||||
var chrome$ = helper.padChrome$;
|
var chrome$ = helper.padChrome$;
|
||||||
|
@ -21,7 +30,9 @@ describe("Language select and change", function(){
|
||||||
$languageoption.attr('selected','selected');
|
$languageoption.attr('selected','selected');
|
||||||
$language.change();
|
$language.change();
|
||||||
|
|
||||||
helper.waitFor(function() { return $language.val() == "de"})
|
helper.waitFor(function() {
|
||||||
|
return chrome$(".buttonicon-bold").parent()[0]["title"] = "Fett (Strg-B)";
|
||||||
|
})
|
||||||
.done(function(){
|
.done(function(){
|
||||||
//get the value of the bold button
|
//get the value of the bold button
|
||||||
var $boldButton = chrome$(".buttonicon-bold").parent();
|
var $boldButton = chrome$(".buttonicon-bold").parent();
|
||||||
|
@ -51,7 +62,10 @@ describe("Language select and change", function(){
|
||||||
$languageoption.attr('selected','selected');
|
$languageoption.attr('selected','selected');
|
||||||
$language.change();
|
$language.change();
|
||||||
|
|
||||||
helper.waitFor(function() { return $language.val() == "en";})
|
//get the value of the bold button
|
||||||
|
var $boldButton = chrome$(".buttonicon-bold").parent();
|
||||||
|
|
||||||
|
helper.waitFor(function() { return $boldButton[0]["title"] != "Fett (Strg-B)";})
|
||||||
.done(function(){
|
.done(function(){
|
||||||
|
|
||||||
//get the value of the bold button
|
//get the value of the bold button
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue