noVNC/tests
Jesper Alf Dam 7d755d10dc Don't compact the receive buffer unless we've actually run out of space
Previously, we would compact the buffer (moving unread data to the
start of the buffer) as follows:

- after processing a message, if there are zero unread bytes, just reset
  the indices for first and last unread byte to zero
- else, if at least 1/8th of the buffer is used, copy remaining data to the beginning of the buffer

The second option is never actually necessary, as before inserting new data
into the array, we already check if there's enough free space, and
compact the buffer first if necessary. So we've been doing a lot of
copies that weren't actually needed. Let's not do that any more.
2019-08-16 19:34:09 +02:00
..
.eslintrc Enforce function names 2018-09-06 16:53:40 +02:00
assertions.js Enforce indentation 2018-09-06 16:37:38 +02:00
fake.websocket.js Send data one byte at a time in tests 2019-02-15 10:26:27 +01:00
karma-test-main.js Enforce curly braces for control statements 2018-09-06 17:22:40 +02:00
playback-ui.js Use CustomEvent for playback events 2019-01-08 12:25:42 +01:00
playback.js Pre-convert recordings for playback 2019-01-08 12:24:39 +01:00
test.base64.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.display.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.helper.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.keyboard.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.localization.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.mouse.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.rfb.js Send data one byte at a time in tests 2019-02-15 10:26:27 +01:00
test.util.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.websock.js Don't compact the receive buffer unless we've actually run out of space 2019-08-16 19:34:09 +02:00
test.webutil.js Remove callbacks from UI in favour of promises 2019-02-27 10:18:59 +02:00
vnc_playback.html Fix up errors and warnings in vnc_playback.html 2019-03-26 15:21:31 +01:00