mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
still very broken but getting more test coverage at least -_-
This commit is contained in:
parent
a30b120b0e
commit
cdce13ca25
2 changed files with 56 additions and 24 deletions
|
@ -1,5 +1,4 @@
|
|||
'use strict';
|
||||
/*
|
||||
describe('Page Up/Down', function () {
|
||||
beforeEach(function (cb) {
|
||||
helper.newPad({
|
||||
|
@ -296,7 +295,6 @@ describe('Viewport based Page Up/Down', function () {
|
|||
await helper.waitForPromise(() => currentLineNumber < 5);
|
||||
});
|
||||
});
|
||||
*/
|
||||
describe('Shift Page Up/Down', function () {
|
||||
beforeEach(function (cb) {
|
||||
helper.newPad({
|
||||
|
@ -373,4 +371,17 @@ describe('Shift Page Up/Down', function () {
|
|||
});
|
||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
||||
});
|
||||
it('highlights from 3rd line on page up twice should keep highlight', async function () {
|
||||
await helper.edit('xxx', 3); // caret is offset 6
|
||||
|
||||
helper.pageUp({
|
||||
shift: true,
|
||||
});
|
||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
||||
|
||||
helper.pageUp({
|
||||
shift: true,
|
||||
});
|
||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue