summaryrefslogtreecommitdiff
path: root/tests/test.display.js
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-11-11 14:01:42 +0100
committerPierre Ossman <ossman@cendio.se>2016-12-09 09:20:50 +0100
commite549ae074fcea9febde32c0fa260a64c15cc1b8e (patch)
treeb4aeec249e145139b7c9f61abb842ef4a0bc113f /tests/test.display.js
parent84cd0e719ead6a1d99827d00794ef821593564fc (diff)
downloadnovnc-e549ae074fcea9febde32c0fa260a64c15cc1b8e.tar.gz
Prevent access to sensitive display variables
These should not be directly accessed. Instead use drawing operation and Display.resize().
Diffstat (limited to 'tests/test.display.js')
-rw-r--r--tests/test.display.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test.display.js b/tests/test.display.js
index 95bf2fd..663f0d7 100644
--- a/tests/test.display.js
+++ b/tests/test.display.js
@@ -71,8 +71,7 @@ describe('Display/Canvas Helper', function () {
});
it('should take viewport location into consideration when drawing images', function () {
- display.set_width(4);
- display.set_height(4);
+ display.resize(4, 4);
display.viewportChangeSize(2, 2);
display.drawImage(make_image_canvas(basic_data), 1, 1);
display.flip();