mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
mst tests still brkoen but it runs
This commit is contained in:
parent
ff58897679
commit
617514b335
6 changed files with 12 additions and 7 deletions
|
@ -43,7 +43,7 @@ describe("bold button", function(){
|
||||||
|
|
||||||
//select this text element
|
//select this text element
|
||||||
$firstTextElement.sendkeys('{selectall}');
|
$firstTextElement.sendkeys('{selectall}');
|
||||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
if(inner$(window)[0].bowser.mozilla){ // if it's a mozilla browser
|
||||||
var evtType = "keypress";
|
var evtType = "keypress";
|
||||||
}else{
|
}else{
|
||||||
var evtType = "keydown";
|
var evtType = "keydown";
|
||||||
|
|
|
@ -2,6 +2,12 @@ describe("As the caret is moved is the UI properly updated?", function(){
|
||||||
var padName;
|
var padName;
|
||||||
var numberOfRows = 50;
|
var numberOfRows = 50;
|
||||||
|
|
||||||
|
//create a new pad before each test run
|
||||||
|
beforeEach(function(cb){
|
||||||
|
helper.newPad(cb);
|
||||||
|
this.timeout(60000);
|
||||||
|
});
|
||||||
|
|
||||||
it("creates a pad", function(done) {
|
it("creates a pad", function(done) {
|
||||||
padName = helper.newPad(done);
|
padName = helper.newPad(done);
|
||||||
this.timeout(60000);
|
this.timeout(60000);
|
||||||
|
@ -224,7 +230,6 @@ describe("As the caret is moved is the UI properly updated?", function(){
|
||||||
});
|
});
|
||||||
var i = 0;
|
var i = 0;
|
||||||
while(i < numberOfRows){ // press down arrow
|
while(i < numberOfRows){ // press down arrow
|
||||||
console.log("dwn");
|
|
||||||
keyEvent(inner$, 40, false, false);
|
keyEvent(inner$, 40, false, false);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
@ -287,7 +292,7 @@ function prepareDocument(n, target){ // generates a random document with random
|
||||||
}
|
}
|
||||||
|
|
||||||
function keyEvent(target, charCode, ctrl, shift){ // sends a charCode to the window
|
function keyEvent(target, charCode, ctrl, shift){ // sends a charCode to the window
|
||||||
if(target.browser.mozilla){ // if it's a mozilla browser
|
if(inner$(window)[0].bowser.mozilla){ // if it's a mozilla browser
|
||||||
var evtType = "keypress";
|
var evtType = "keypress";
|
||||||
}else{
|
}else{
|
||||||
var evtType = "keydown";
|
var evtType = "keydown";
|
||||||
|
|
|
@ -15,7 +15,7 @@ describe("indentation button", function(){
|
||||||
//select this text element
|
//select this text element
|
||||||
$firstTextElement.sendkeys('{selectall}');
|
$firstTextElement.sendkeys('{selectall}');
|
||||||
|
|
||||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
if(inner$(window)[0].bowser.mozilla){ // if it's a mozilla browser
|
||||||
var evtType = "keypress";
|
var evtType = "keypress";
|
||||||
}else{
|
}else{
|
||||||
var evtType = "keydown";
|
var evtType = "keydown";
|
||||||
|
|
|
@ -44,7 +44,7 @@ describe("italic some text", function(){
|
||||||
//select this text element
|
//select this text element
|
||||||
$firstTextElement.sendkeys('{selectall}');
|
$firstTextElement.sendkeys('{selectall}');
|
||||||
|
|
||||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
if(inner$(window)[0].bowser.mozilla){ // if it's a mozilla browser
|
||||||
var evtType = "keypress";
|
var evtType = "keypress";
|
||||||
}else{
|
}else{
|
||||||
var evtType = "keydown";
|
var evtType = "keydown";
|
||||||
|
|
|
@ -47,7 +47,7 @@ describe("undo button then redo button", function(){
|
||||||
var modifiedValue = $firstTextElement.text(); // get the modified value
|
var modifiedValue = $firstTextElement.text(); // get the modified value
|
||||||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||||
|
|
||||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
if(inner$(window)[0].bowser.mozilla){ // if it's a mozilla browser
|
||||||
var evtType = "keypress";
|
var evtType = "keypress";
|
||||||
}else{
|
}else{
|
||||||
var evtType = "keydown";
|
var evtType = "keydown";
|
||||||
|
|
|
@ -44,7 +44,7 @@ describe("undo button", function(){
|
||||||
var modifiedValue = $firstTextElement.text(); // get the modified value
|
var modifiedValue = $firstTextElement.text(); // get the modified value
|
||||||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||||
|
|
||||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
if(inner$(window)[0].bowser.mozilla){ // if it's a mozilla browser
|
||||||
var evtType = "keypress";
|
var evtType = "keypress";
|
||||||
}else{
|
}else{
|
||||||
var evtType = "keydown";
|
var evtType = "keydown";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue