Breakdown of ExtendedDesktopSize message in tests
Saves time by not requiring the developer to look up the RFB protocol each time viewing these tests.
This commit is contained in:
parent
a7b96087d7
commit
c0d4dc8eb3
|
@ -780,11 +780,26 @@ describe('Remote Frame Buffer Protocol Client', function () {
|
|||
|
||||
it('should request a resize when initially connecting', function () {
|
||||
// Simple ExtendedDesktopSize FBU message
|
||||
const incoming = [ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x04, 0x00, 0x04, 0xff, 0xff, 0xfe, 0xcc,
|
||||
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04,
|
||||
0x00, 0x00, 0x00, 0x00 ];
|
||||
const incoming = [ 0x00, // msg-type=FBU
|
||||
0x00, // padding
|
||||
0x00, 0x01, // number of rects = 1
|
||||
0x00, 0x00, // reason = server initialized
|
||||
0x00, 0x00, // status = no error
|
||||
0x00, 0x04, // new width = 4
|
||||
0x00, 0x04, // new height = 4
|
||||
0xff, 0xff,
|
||||
0xfe, 0xcc, // enc = (-308) ExtendedDesktopSize
|
||||
0x01, // number of screens = 1
|
||||
0x00, 0x00,
|
||||
0x00, // padding
|
||||
0x00, 0x00,
|
||||
0x00, 0x00, // screen id = 0
|
||||
0x00, 0x00, // screen x = 0
|
||||
0x00, 0x00, // screen y = 0
|
||||
0x00, 0x04, // screen width = 4
|
||||
0x00, 0x04, // screen height = 4
|
||||
0x00, 0x00,
|
||||
0x00, 0x00]; // screen flags
|
||||
|
||||
// This property is indirectly used as a marker for the first update
|
||||
client._supportsSetDesktopSize = false;
|
||||
|
|
Loading…
Reference in New Issue