this should pass more tests..
This commit is contained in:
parent
1462d8e80c
commit
24188d7007
|
@ -43,11 +43,10 @@ describe("bold button", function(){
|
|||
|
||||
//select this text element
|
||||
$firstTextElement.sendkeys('{selectall}');
|
||||
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -15,10 +15,10 @@ describe("indentation button", function(){
|
|||
//select this text element
|
||||
$firstTextElement.sendkeys('{selectall}');
|
||||
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -44,10 +44,10 @@ describe("italic some text", function(){
|
|||
//select this text element
|
||||
$firstTextElement.sendkeys('{selectall}');
|
||||
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
|
||||
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.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
if(inner$.browser.mozilla){ // if it's a mozilla browser
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
|
@ -45,9 +45,9 @@ describe("undo button", function(){
|
|||
expect(modifiedValue).not.to.be(originalValue); // expect the value to change
|
||||
|
||||
if(!inner$.browser.firefox){
|
||||
var evtType = "keydown";
|
||||
}else{
|
||||
var evtType = "keypress";
|
||||
}else{
|
||||
var evtType = "keydown";
|
||||
}
|
||||
|
||||
var e = inner$.Event(evtType);
|
||||
|
|
Loading…
Reference in New Issue