This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import './../../theme/inserttable.css';
17
17
* It renders a 10x10 grid to choose inserted table size.
18
18
*
19
19
* @extends module:ui/view~View
20
+ * @implements module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable
20
21
*/
21
22
export default class InsertTableView extends View {
22
23
/**
@@ -125,6 +126,22 @@ export default class InsertTableView extends View {
125
126
} ) ;
126
127
}
127
128
129
+ /**
130
+ * @inheritDoc
131
+ */
132
+ focus ( ) {
133
+ // The dropdown panel expects DropdownPanelFocusable interface on views passed to dropdown panel. See #30.
134
+ // The method should be implemented while working on keyboard support for this view. See #22.
135
+ }
136
+
137
+ /**
138
+ * @inheritDoc
139
+ */
140
+ focusLast ( ) {
141
+ // The dropdown panel expects DropdownPanelFocusable interface on views passed to dropdown panel. See #30.
142
+ // The method should be implemented while working on keyboard support for this view. See #22.
143
+ }
144
+
128
145
/**
129
146
* Highlights grid boxes depending on rows & columns selected.
130
147
*
Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ describe( 'InsertTableView', () => {
54
54
expect ( view . items ) . to . have . length ( 100 ) ;
55
55
} ) ;
56
56
57
+ it ( 'should not throw error for DropdownPanelFocusable interface methods' , ( ) => {
58
+ expect ( ( ) => view . focus ( ) ) . to . not . throw ( ) ;
59
+ expect ( ( ) => view . focusLast ( ) ) . to . not . throw ( ) ;
60
+ } ) ;
61
+
57
62
describe ( 'view#items bindings' , ( ) => {
58
63
it ( 'updates view#height & view#width on "over" event' , ( ) => {
59
64
const boxView = view . items . get ( 0 ) ;
You can’t perform that action at this time.
0 commit comments