Merge 5157d32077 into 7a16304e52
This commit is contained in:
commit
b642677ab1
|
|
@ -666,6 +666,7 @@ var RFB;
|
|||
case "003.008":
|
||||
case "004.000": // Intel AMT KVM
|
||||
case "004.001": // RealVNC 4.6
|
||||
case "005.000": // RealVNC 5.3
|
||||
this._rfb_version = 3.8;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -545,6 +545,11 @@ describe('Remote Frame Buffer Protocol Client', function() {
|
|||
expect(client._rfb_version).to.equal(3.8);
|
||||
});
|
||||
|
||||
it('should interpret version 005.000 as version 3.8', function () {
|
||||
send_ver('005.000', client);
|
||||
expect(client._rfb_version).to.equal(3.8);
|
||||
});
|
||||
|
||||
it('should fail on an invalid version', function () {
|
||||
send_ver('002.000', client);
|
||||
expect(client._rfb_state).to.equal('failed');
|
||||
|
|
|
|||
Loading…
Reference in New Issue