Behaviour SwRS-MDOKFSTUDIO-PALETTE-078
The Table button opens a 9 by 9 size grid and inserts a table of the chosen size
When the writer presses Table, the extension SHALL open a popover with a 9 by 9 grid of 81 cells, each named by its row and column, and a label that reads Table size until a cell is lit, and insert the table of the size the writer chooses by pointer or by keyboard as one undoable step, returning the focus to the text box.
Part of StRS-MDOKFSTUDIO-PALETTE-007, outside the paths drawn on its map.
Scenarios 6
The situations the tests check; open one to read it.
nominalOpening
Givenan open block editor
Whenthe writer presses Table
Thenthe grid shows 81 cells and the label reads Table size
nominalHovering lights the rectangle
Giventhe grid open
Whenthe pointer is over the cell of row 3 and column 4
Thenthe cells from the top left cell to that cell are lit, 12 of the 81 cells, and the label reads 3 × 4
nominalCell click
Giventhe grid open
Whenthe writer clicks the cell of row 3 and column 4
Thenthe table of SwRS-MDOKFSTUDIO-TABLE-106 is inserted in one undo step, the grid closes, the focus returns to the text box and the editor stays open
nominalArrows and Enter
Giventhe grid open and no cell lit
Whenthe writer presses ArrowRight twice, ArrowDown and Enter in the text box
Thenthe first arrow lights 1 by 1, the next ones grow it to 2 by 2 and a table of that size is inserted
refusalChoice without a cell
| Input | Outcome |
|---|---|
| The grid is open and the writer clicks the label | Nothing is inserted and the grid stays open |
| The grid is open, no cell is lit and the writer presses Enter | Nothing is chosen and the grid stays open |
boundaryPointer, range and cell editor
| Input | Outcome |
|---|---|
| The pointer moves from a cell onto the label while a rectangle is lit | The lit rectangle does not change |
| The arrow keys press against the edge | The lit rectangle never leaves the range 1 to 9 on either axis |
| An open table cell editor | The formatting group offers no Table button (see SwRS-MDOKFSTUDIO-TABLE-106) |