noVNC/tests
Pierre Ossman d0203a5995 Always return copy of data from socket
We don't know how long the caller will hang on to this data, so we need
to be safe by default and assume it will kept indefinitely. That means
we can't return a reference to the internal buffer, as that will get
overwritten with future messages.

We want to avoid unnecessary copying in performance critical code,
though. So allow code to explicitly ask for a shared buffer, assuming
they know the data needs to be consumed immediately.
2023-06-04 19:12:02 +02:00
..
.eslintrc Enforce function names 2018-09-06 16:53:40 +02:00
assertions.js Remove redundant inspect() override 2022-10-27 16:03:01 +02:00
fake.websocket.js Return a copy of the data from FakeWebSocket 2023-05-30 20:48:26 +02:00
playback-ui.js Also re-enable playback on failures 2023-04-04 17:02:57 +02:00
playback.js Switch Display.flush() to use a promise 2023-06-04 19:00:33 +02:00
test.base64.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.browser.js Check for Android using userAgent 2022-12-27 12:50:57 +01:00
test.copyrect.js Check that decoders consume all data 2023-06-03 15:36:29 +02:00
test.deflator.js Add camelCase rule to eslint 2020-05-31 23:37:29 +02:00
test.display.js Switch Display.flush() to use a promise 2023-06-04 19:00:33 +02:00
test.gesturehandler.js Drop support for Internet Explorer 2020-10-15 18:53:51 +02:00
test.helper.js Remove test code for old Chrome 2022-12-27 12:50:57 +01:00
test.hextile.js Check that decoders consume all data 2023-06-03 15:36:29 +02:00
test.inflator.js Add unit tests for Inflator 2021-11-16 09:37:56 +01:00
test.int.js Add util for unsigned and signed int. conversion 2020-02-17 11:29:40 +01:00
test.jpeg.js Switch Display.flush() to use a promise 2023-06-04 19:00:33 +02:00
test.keyboard.js Remove test code for old Chrome 2022-12-27 12:50:57 +01:00
test.localization.js Handle translation loading in translation class 2023-05-10 13:11:51 +02:00
test.raw.js Check that decoders consume all data 2023-06-03 15:36:29 +02:00
test.rfb.js Make extended clipboard tests independent 2023-05-30 20:48:26 +02:00
test.rre.js Check that decoders consume all data 2023-06-03 15:36:29 +02:00
test.tight.js Switch Display.flush() to use a promise 2023-06-04 19:00:33 +02:00
test.tightpng.js Switch Display.flush() to use a promise 2023-06-04 19:00:33 +02:00
test.util.js Standardize on camelCase in Logging 2020-05-31 23:37:29 +02:00
test.websock.js Always return copy of data from socket 2023-06-04 19:12:02 +02:00
test.webutil.js Restore history state after tests 2023-05-10 12:25:46 +02:00
test.zrle.js Check that decoders consume all data 2023-06-03 15:36:29 +02:00
vnc_playback.html Remove legacy conversion of modules 2020-10-15 18:53:51 +02:00