mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
25 lines
563 B
JavaScript
25 lines
563 B
JavaScript
|
'use strict';
|
||
|
|
||
|
describe('scrolls to line', function () {
|
||
|
// create a new pad with URL hash set before each test run
|
||
|
beforeEach(function (cb) {
|
||
|
helper.newPad({
|
||
|
hash: 'L4',
|
||
|
cb,
|
||
|
});
|
||
|
this.timeout(10000);
|
||
|
});
|
||
|
|
||
|
|
||
|
it('Scrolls down to Line 4', function (done) {
|
||
|
this.timeout(10000);
|
||
|
const chrome$ = helper.padChrome$;
|
||
|
helper.waitFor(() => {
|
||
|
const topOffset = parseInt(chrome$('iframe').first('iframe')
|
||
|
.contents().find('#outerdocbody').css('top'));
|
||
|
return (topOffset >= 100);
|
||
|
});
|
||
|
done();
|
||
|
});
|
||
|
});
|