diff options
author | Pierre Ossman <ossman@cendio.se> | 2017-10-20 13:03:50 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-11-09 13:13:41 +0100 |
commit | a80aa41628cf84dc7f290e6d40d93e4d690df5c4 (patch) | |
tree | 6bc118de897a0b56f7d0684a539d1bd4a75effb5 /tests/test.display.js | |
parent | 15a62695102df4f412e44243c5371d56d4eba964 (diff) | |
download | novnc-a80aa41628cf84dc7f290e6d40d93e4d690df5c4.tar.gz |
Change clippingDisplay() to a property
It fits much better as a property given that it only tells what the
current state of things are.
Diffstat (limited to 'tests/test.display.js')
-rw-r--r-- | tests/test.display.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test.display.js b/tests/test.display.js index 675b43d..33ff8f1 100644 --- a/tests/test.display.js +++ b/tests/test.display.js @@ -92,14 +92,12 @@ describe('Display/Canvas Helper', function () { }); it('should report clipping when framebuffer > viewport', function () { - var clipping = display.clippingDisplay(); - expect(clipping).to.be.true; + expect(display.isClipped).to.be.true; }); it('should report not clipping when framebuffer = viewport', function () { display.viewportChangeSize(5, 5); - var clipping = display.clippingDisplay(); - expect(clipping).to.be.false; + expect(display.isClipped).to.be.false; }); it('should show the entire framebuffer when disabling the viewport', function() { |