still very broken but getting more test coverage at least -_-

This commit is contained in:
John McLear 2020-12-31 11:27:04 +00:00
parent a30b120b0e
commit cdce13ca25
2 changed files with 56 additions and 24 deletions

View file

@ -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');
});
});