| | 1 | Unit test can be found in t/10812. |
| | 2 | |
| | 3 | Manual TCs: |
| | 4 | |
| | 5 | === TC1 (IE and sometimes FF) === |
| | 6 | |
| | 7 | 1. Load this HTML: `<h1>Apollo 11<img alt="Saturn V carrying Apollo 11" src="assets/sample.jpg" /></h1>` |
| | 8 | 2. Select image and press align right. |
| | 9 | 3. Undo. |
| | 10 | |
| | 11 | * Expected: image is selected after undoing (although selection may differ visually from the old one) |
| | 12 | * Actual: selection is lost. |
| | 13 | |
| | 14 | |
| | 15 | === TC2 (all browsers) === |
| | 16 | |
| | 17 | {{{ |
| | 18 | <table border="1" cellpadding="1" cellspacing="1" style="width:500px"> |
| | 19 | <tbody> |
| | 20 | <tr> |
| | 21 | <td>a</td> |
| | 22 | <td>b</td> |
| | 23 | </tr> |
| | 24 | <tr> |
| | 25 | <td>c</td> |
| | 26 | <td>d</td> |
| | 27 | </tr> |
| | 28 | </tbody> |
| | 29 | </table> |
| | 30 | }}} |
| | 31 | |
| | 32 | 1. Load the above HTML. |
| | 33 | 2. Select table (using elements path). |
| | 34 | 3. Apply bold. |
| | 35 | 4. Try to undo. |
| | 36 | |
| | 37 | * Expected: entire table is selected after undoing. |
| | 38 | * Actual: selection is lost. |