feat: view.getVisible() (#44999)
* feat: view.getVisible() * test: visible apis * docs: clarify getVisible
This commit is contained in:
parent
26da3c5d6e
commit
e2a7981dd3
4 changed files with 26 additions and 1 deletions
|
@ -79,4 +79,17 @@ describe('View', () => {
|
|||
v.setBorderRadius(9999999);
|
||||
v.setBorderRadius(-9999999);
|
||||
});
|
||||
|
||||
describe('view.getVisible|setVisible', () => {
|
||||
it('is visible by default', () => {
|
||||
const v = new View();
|
||||
expect(v.getVisible()).to.be.true();
|
||||
});
|
||||
|
||||
it('can be set to not visible', () => {
|
||||
const v = new View();
|
||||
v.setVisible(false);
|
||||
expect(v.getVisible()).to.be.false();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue