summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-11-21 17:53:46 +0000
committerJohn McLear <john@mclear.co.uk>2012-11-21 17:53:46 +0000
commitdb5119f798b9e513c51b757b9cf076eb5dae0bb4 (patch)
treeb5dd1be98dadd4c5c653326866c944f5bd9533d3 /tests
parent2260b1fc6282589ecb90b8d530ced5c12e054071 (diff)
downloadetherpad-lite-db5119f798b9e513c51b757b9cf076eb5dae0bb4.zip
Fix tests to run on IE8 etc.
A bit more fragile but so is the life of supporting older browsers.
Diffstat (limited to 'tests')
-rw-r--r--tests/frontend/specs/language.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/tests/frontend/specs/language.js b/tests/frontend/specs/language.js
index 83bb8458..f93bc33d 100644
--- a/tests/frontend/specs/language.js
+++ b/tests/frontend/specs/language.js
@@ -21,12 +21,8 @@ describe("Language select and change", function(){
$languageoption.attr('selected','selected');
$language.change();
- var localizedEventFired = false;
- $(chrome$.window).bind('localized', function() {
- localizedEventFired = true;
- })
-
- helper.waitFor(function() { return localizedEventFired;})
+ var current = $language.val();
+ helper.waitFor(function() { return $language.val() != current}) // GOT IT?
.done(function(){
//get the value of the bold button
var $boldButton = chrome$(".buttonicon-bold").parent();
@@ -56,12 +52,8 @@ describe("Language select and change", function(){
$languageoption.attr('selected','selected');
$language.change();
- var localizedEventFired = false;
- $(chrome$.window).bind('localized', function() {
- localizedEventFired = true;
- })
-
- helper.waitFor(function() { return localizedEventFired;})
+ var current = $language.val();
+ helper.waitFor(function() { return $language.val() != current})
.done(function(){
//get the value of the bold button
@@ -78,4 +70,3 @@ describe("Language select and change", function(){
});
});
-