Change clippingDisplay() to a property

It fits much better as a property given that it only tells what the
current state of things are.
This commit is contained in:
Pierre Ossman
2017-10-20 13:03:50 +02:00
parent 15a6269510
commit a80aa41628
6 changed files with 15 additions and 36 deletions
+2 -4
View File
@@ -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() {