this should pass more tests..

This commit is contained in:
John McLear 2013-03-14 14:36:54 -03:00
parent 1462d8e80c
commit 24188d7007
5 changed files with 14 additions and 15 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);