mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
now IE friendly
This commit is contained in:
parent
6bac01009b
commit
1462d8e80c
5 changed files with 15 additions and 15 deletions
|
@ -44,10 +44,10 @@ describe("bold button", function(){
|
|||
//select this text element
|
||||
$firstTextElement.sendkeys('{selectall}');
|
||||
|
||||
if(!inner$.browser.chrome){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
var evtType = "keypress";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -15,10 +15,10 @@ describe("indentation button", function(){
|
|||
//select this text element
|
||||
$firstTextElement.sendkeys('{selectall}');
|
||||
|
||||
if(!inner$.browser.chrome){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
var evtType = "keypress";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -44,10 +44,10 @@ describe("italic some text", function(){
|
|||
//select this text element
|
||||
$firstTextElement.sendkeys('{selectall}');
|
||||
|
||||
if(!inner$.browser.chrome){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
var evtType = "keypress";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -47,10 +47,10 @@ describe("undo button then redo button", function(){
|
|||
var modifiedValue = $firstTextElement.text(); // get the modified value
|
||||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||
|
||||
if(!inner$.browser.chrome){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
var evtType = "keypress";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -44,10 +44,10 @@ describe("undo button", function(){
|
|||
var modifiedValue = $firstTextElement.text(); // get the modified value
|
||||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||
|
||||
if(!inner$.browser.chrome){
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
var evtType = "keypress";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
Loading…
Reference in a new issue