summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/frontend/specs/timeslider_revisions.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/frontend/specs/timeslider_revisions.js b/tests/frontend/specs/timeslider_revisions.js
index bb0696c7..6eb4cca6 100644
--- a/tests/frontend/specs/timeslider_revisions.js
+++ b/tests/frontend/specs/timeslider_revisions.js
@@ -98,7 +98,6 @@ describe("timeslider", function(){
}, 6000);
}, revs*timePerRev);
});
-
// This test is bad because it expects char length to be static
// A much better way would be get the charCount before sending new chars
it("jumps to a revision given in the url", function(done) {
@@ -117,7 +116,9 @@ describe("timeslider", function(){
timeslider$ = $('#iframe-container iframe')[0].contentWindow.$;
}catch(e){
}
- return timeslider$('#padcontent').text().length == 230;
+ if(timeslider$){
+ return timeslider$('#padcontent').text().length == 230;
+ }
}, 6000).always(function(){
expect( timeslider$('#padcontent').text().length ).to.eql( 230 );
done();