mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-19 20:54:46 -04:00
tests: Refine frontend tests
* Switch from `helper.newPad()` to `helper.aNewPad()`. * Promisify. * Delete redundant logic. * Lint fixes.
This commit is contained in:
parent
3790c0e41c
commit
bbf89dfcf9
35 changed files with 697 additions and 842 deletions
|
@ -1,12 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
describe('height regression after ace.js refactoring', function () {
|
||||
before(function (cb) {
|
||||
helper.newPad(cb);
|
||||
before(async function () {
|
||||
await helper.aNewPad();
|
||||
});
|
||||
|
||||
// everything fits inside the viewport
|
||||
it('clientHeight should equal scrollHeight with few lines', function() {
|
||||
it('clientHeight should equal scrollHeight with few lines', async function () {
|
||||
const aceOuter = helper.padChrome$('iframe')[0].contentDocument;
|
||||
const clientHeight = aceOuter.documentElement.clientHeight;
|
||||
const scrollHeight = aceOuter.documentElement.scrollHeight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue