Commit graph

7 commits

Author SHA1 Message Date
Richard Hansen
ed991419b8 sendkeys: Merge in latest upstream commit that mostly works
5c034c108c
seems to be the newest upstream commit that still works. After that,
`{selectall}` doesn't seem to work. Starting with v3.0, sendkeys sends
input events instead of keypress events, which `ace2_inner.js` doesn't
listen for.
2023-09-14 18:33:57 +02:00
Richard Hansen
0900354980 sendkeys: Split into separate files to match upstream 2023-09-14 18:33:57 +02:00
Richard Hansen
ea556c4150 sendkeys: Upgrade to oldest version in upstream repo 2023-09-14 18:33:57 +02:00
Richard Hansen
7147195ac6 sendkeys: Undo formatting and unnecessary changes
This partially reverts the following commits:
  * 04e9fc3a2f
  * 3d8452b143
  * 07182bb716
  * 68ed9b219f
2023-09-14 18:33:57 +02:00
Richard Hansen
ce5ef9350f tests: sendkeys: Fix {enter} keypress event 2021-07-19 23:44:33 +02:00
John McLear
f59e0993a6
tests: test runner output HTML and CSS improvements to show duration (#4775) 2021-02-14 08:04:50 +00:00
John McLear
2ea8ea1275 restructure: move bin/ and tests/ to src/
Also add symlinks from the old `bin/` and `tests/` locations to avoid
breaking scripts and other tools.

Motivations:

  * Scripts and tests no longer have to do dubious things like:

        require('ep_etherpad-lite/node_modules/foo')

    to access packages installed as dependencies in
    `src/package.json`.

  * Plugins can access the backend test helper library in a non-hacky
    way:

        require('ep_etherpad-lite/tests/backend/common')

  * We can delete the top-level `package.json` without breaking our
    ability to lint the files in `bin/` and `tests/`.

    Deleting the top-level `package.json` has downsides: It will cause
    `npm` to print warnings whenever plugins are installed, npm will
    no longer be able to enforce a plugin's peer dependency on
    ep_etherpad-lite, and npm will keep deleting the
    `node_modules/ep_etherpad-lite` symlink that points to `../src`.

    But there are significant upsides to deleting the top-level
    `package.json`: It will drastically speed up plugin installation
    because `npm` doesn't have to recursively walk the dependencies in
    `src/package.json`. Also, deleting the top-level `package.json`
    avoids npm's horrible dependency hoisting behavior (where it moves
    stuff from `src/node_modules/` to the top-level `node_modules/`
    directory). Dependency hoisting causes numerous mysterious
    problems such as silent failures in `npm outdated` and `npm
    update`. Dependency hoisting also breaks plugins that do:

        require('ep_etherpad-lite/node_modules/foo')
2021-02-04 17:15:08 -05:00