Fix tests to run on IE8 etc.
A bit more fragile but so is the life of supporting older browsers.pull/1188/merge
parent
2260b1fc62
commit
db5119f798
|
@ -21,12 +21,8 @@ describe("Language select and change", function(){
|
||||||
$languageoption.attr('selected','selected');
|
$languageoption.attr('selected','selected');
|
||||||
$language.change();
|
$language.change();
|
||||||
|
|
||||||
var localizedEventFired = false;
|
var current = $language.val();
|
||||||
$(chrome$.window).bind('localized', function() {
|
helper.waitFor(function() { return $language.val() != current}) // GOT IT?
|
||||||
localizedEventFired = true;
|
|
||||||
})
|
|
||||||
|
|
||||||
helper.waitFor(function() { return localizedEventFired;})
|
|
||||||
.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();
|
||||||
|
@ -56,12 +52,8 @@ describe("Language select and change", function(){
|
||||||
$languageoption.attr('selected','selected');
|
$languageoption.attr('selected','selected');
|
||||||
$language.change();
|
$language.change();
|
||||||
|
|
||||||
var localizedEventFired = false;
|
var current = $language.val();
|
||||||
$(chrome$.window).bind('localized', function() {
|
helper.waitFor(function() { return $language.val() != current})
|
||||||
localizedEventFired = true;
|
|
||||||
})
|
|
||||||
|
|
||||||
helper.waitFor(function() { return localizedEventFired;})
|
|
||||||
.done(function(){
|
.done(function(){
|
||||||
|
|
||||||
//get the value of the bold button
|
//get the value of the bold button
|
||||||
|
@ -78,4 +70,3 @@ describe("Language select and change", function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue