Remove unused Display.logo attribute

This commit is contained in:
Pierre Ossman
2019-08-23 15:03:13 +02:00
committed by Lauri Kasanen
parent 734bdd3746
commit 4cc536636a
3 changed files with 4 additions and 26 deletions

View File

@@ -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();