diff options
author | Pierre Ossman <ossman@cendio.se> | 2019-08-23 15:03:13 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-08-23 15:04:23 +0200 |
commit | 3855a7bee458d1bf17fa4c498e7963d1d4835869 (patch) | |
tree | fd8eff95656bd7a31f622ccbf1330cc70f2cd3e5 /tests/test.display.js | |
parent | 6aed0b4dd2b1e219fd7da417370d4215d5f0937d (diff) | |
download | novnc-3855a7bee458d1bf17fa4c498e7963d1d4835869.tar.gz |
Remove unused Display.logo attribute
Diffstat (limited to 'tests/test.display.js')
-rw-r--r-- | tests/test.display.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/test.display.js b/tests/test.display.js index b359550..2da47cf 100644 --- a/tests/test.display.js +++ b/tests/test.display.js @@ -269,9 +269,8 @@ describe('Display/Canvas Helper', function () { display.resize(4, 4); }); - it('should clear the screen on #clear without a logo set', function () { + it('should clear the screen on #clear', function () { display.fillRect(0, 0, 4, 4, [0x00, 0x00, 0xff]); - display._logo = null; display.clear(); display.resize(4, 4); const empty = []; @@ -279,18 +278,6 @@ describe('Display/Canvas Helper', function () { expect(display).to.have.displayed(new Uint8Array(empty)); }); - it('should draw the logo on #clear with a logo set', function (done) { - display._logo = { width: 4, height: 4, type: "image/png", data: make_image_png(checked_data) }; - display.clear(); - display.onflush = () => { - expect(display).to.have.displayed(checked_data); - expect(display._fb_width).to.equal(4); - expect(display._fb_height).to.equal(4); - done(); - }; - display.flush(); - }); - it('should not draw directly on the target canvas', function () { display.fillRect(0, 0, 4, 4, [0, 0, 0xff]); display.flip(); |