noVNC/tests
Samuel Mannehed 0ff0844a14 Ignore resize observation caused by server resizes
If we increase the remote screen size from the server in such a way that
it no longer fits the browser window, the browser will probably want to
show scrollbars. The same happens if you enable 'clipping' while the
remote is larger than the browser window. These scrollbars do, in turn,
decrease the available space in the browser window. This causes our
ResizeObserver to trigger.

If the resize observation triggers a requestRemoteResize() we will
overwrite the size and request a new one just because scrollbars have
appeared. We don't want that.

We can save the expected client size after resizing, and then compare
the current client size with the expected one. If there is no change
compared to the expected size, we shouldn't send the request.

Fixes issue #1616.
2021-12-13 11:20:14 +01:00
..
.eslintrc Enforce function names 2018-09-06 16:53:40 +02:00
assertions.js Remove many small, obsolete, old browser hacks 2020-12-07 10:10:53 +01:00
fake.websocket.js Added support for RTCDataChannel 2021-03-04 18:55:06 +00:00
playback-ui.js Ignore recording variables in our linter 2020-09-05 11:08:16 +02:00
playback.js Update playback test to use new API 2021-07-22 16:56:49 +02:00
test.base64.js Enforce space after function name 2018-09-06 17:34:15 +02:00
test.copyrect.js Handle empty rects in RAW decoder as well 2020-09-07 12:58:52 +02:00
test.deflator.js Add camelCase rule to eslint 2020-05-31 23:37:29 +02:00
test.display.js Remove createImageData() fallback 2020-12-07 10:10:53 +01:00
test.gesturehandler.js Drop support for Internet Explorer 2020-10-15 18:53:51 +02:00
test.helper.js Send combination keysyms for some Japanese keys 2020-12-10 10:00:44 +01:00
test.hextile.js Handle empty rects in RAW decoder as well 2020-09-07 12:58:52 +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 Add RealVNC's JPEG encoding 2021-11-26 03:59:19 -05:00
test.keyboard.js Remove some unnecessary use of done argument 2020-12-10 10:21:21 +01:00
test.localization.js Drop support for Internet Explorer 2020-10-15 18:53:51 +02:00
test.raw.js Handle empty rects in RAW decoder as well 2020-09-07 12:58:52 +02:00
test.rfb.js Ignore resize observation caused by server resizes 2021-12-13 11:20:14 +01:00
test.rre.js Handle empty rects in RAW decoder as well 2020-09-07 12:58:52 +02:00
test.tight.js Handle empty rects in RAW decoder as well 2020-09-07 12:58:52 +02:00
test.tightpng.js Add workaround for Firefox PNG rounding bug 2020-09-28 12:24:56 +02:00
test.util.js Standardize on camelCase in Logging 2020-05-31 23:37:29 +02:00
test.websock.js Don't fake open events in Websock 2021-04-18 14:26:30 +02:00
test.webutil.js Fix parsing of query string variables 2021-09-08 15:37:42 +02:00
test.zrle.js Added support for ZRLE encoding 2021-11-23 12:02:42 -05:00
vnc_playback.html Remove legacy conversion of modules 2020-10-15 18:53:51 +02:00