Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Mar 18, 2024
1 parent 14a4ee0 commit 87f8ee9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/ckeditor5-ui/tests/input/inputbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ describe( 'InputBase', () => {
} );
} );

describe( 'tabIndex', () => {
it( 'should react on view#tabIndex', () => {
expect( view.element.getAttribute( 'tabIndex' ) ).to.be.null;

view.tabIndex = 123;

expect( view.element.getAttribute( 'tabIndex' ) ).to.equal( 123 );
} );
} );

describe( 'aria-label', () => {
it( 'should react on view#ariaLabel', () => {
expect( view.element.getAttribute( 'aria-label' ) ).to.be.null;
Expand Down

0 comments on commit 87f8ee9

Please sign in to comment.