diff options
Diffstat (limited to 'tests/test.rfb.js')
-rw-r--r-- | tests/test.rfb.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test.rfb.js b/tests/test.rfb.js index 5f50581..f70bc14 100644 --- a/tests/test.rfb.js +++ b/tests/test.rfb.js @@ -392,6 +392,13 @@ describe('Remote Frame Buffer Protocol Client', function () { client.focus(); expect(client._canvas.focus).to.have.been.calledOnce; }); + + it('should include focus options', function () { + client._canvas.focus = sinon.spy(); + client.focus({ foobar: 12, gazonk: true }); + expect(client._canvas.focus).to.have.been.calledOnce; + expect(client._canvas.focus).to.have.been.calledWith({ foobar: 12, gazonk: true}); + }); }); describe('#blur', function () { |