mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 01:46:14 -04:00
placeholder for tests to finish up
This commit is contained in:
parent
d1222bb9a7
commit
c91c227a86
1 changed files with 25 additions and 7 deletions
|
@ -348,12 +348,16 @@ describe('Shift Page Up/Down', function () {
|
||||||
cb: async () => {
|
cb: async () => {
|
||||||
await helper.clearPad();
|
await helper.clearPad();
|
||||||
// 200 lines
|
// 200 lines
|
||||||
await helper.edit('\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n');
|
await helper.edit(
|
||||||
|
'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n' +
|
||||||
|
'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n' +
|
||||||
|
'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n' +
|
||||||
|
'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n' +
|
||||||
|
'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n');
|
||||||
cb();
|
cb();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('highlights lines on shift page down and releases them on page up', async function () {
|
it('highlights lines on shift page down and releases them on page up', async function () {
|
||||||
await helper.edit('xxx', 1); // caret is offset 6
|
await helper.edit('xxx', 1); // caret is offset 6
|
||||||
|
|
||||||
|
@ -368,7 +372,6 @@ describe('Shift Page Up/Down', function () {
|
||||||
});
|
});
|
||||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Caret');
|
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Caret');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('highlights lines on shift page down and maintains first selection on page up', async function () {
|
it('highlights lines on shift page down and maintains first selection on page up', async function () {
|
||||||
await helper.edit('xxx', 1); // caret is offset 6
|
await helper.edit('xxx', 1); // caret is offset 6
|
||||||
|
|
||||||
|
@ -388,9 +391,7 @@ describe('Shift Page Up/Down', function () {
|
||||||
});
|
});
|
||||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
||||||
});
|
});
|
||||||
|
it('BROKEN JM TO FIX - highlights from end of document on page up then releases them on shift page down', async function () {
|
||||||
|
|
||||||
it('highlights from end of document on page up then releases them on shift page down', async function () {
|
|
||||||
helper.pageUp({
|
helper.pageUp({
|
||||||
shift: true,
|
shift: true,
|
||||||
});
|
});
|
||||||
|
@ -401,7 +402,6 @@ describe('Shift Page Up/Down', function () {
|
||||||
});
|
});
|
||||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Caret');
|
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Caret');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('highlights from end of document on page up twice and retains on single page down', async function () {
|
it('highlights from end of document on page up twice and retains on single page down', async function () {
|
||||||
helper.pageUp({
|
helper.pageUp({
|
||||||
shift: true,
|
shift: true,
|
||||||
|
@ -431,6 +431,24 @@ describe('Shift Page Up/Down', function () {
|
||||||
});
|
});
|
||||||
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
await helper.waitForPromise(() => helper.padInner$.document.getSelection().type === 'Range');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('highlights (a few lines) range forward then hit page up, selStart should be prior to initial selStart and selEnd should be the original selStart', async function () {
|
||||||
|
throw new Error("JM TO DO")
|
||||||
|
});
|
||||||
|
|
||||||
|
it('highlights (a few lines) range forwards then hit page down, selStart should be initial selStart and selEnd further than original selEnd', async function () {
|
||||||
|
throw new Error("JM TO DO")
|
||||||
|
});
|
||||||
|
|
||||||
|
it('highlights (a few lines) range backwards (rep.selFocusAtStart) then hit page up, selEnd should be initial selStart, selStart should be less than original selStart', async function () {
|
||||||
|
throw new Error("JM TO DO")
|
||||||
|
});
|
||||||
|
|
||||||
|
it('highlights (a few lines) range backwards (rep.selFocusAtStart) then hit page down, selStart should be initial selEnd and selEnd further than original selEnd', async function () {
|
||||||
|
throw new Error("JM TO DO")
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Press and Hold Page Up/Down', function () {
|
describe('Press and Hold Page Up/Down', function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue