1 This tests enabling of execCommand commands based on whether the selection is a caret or range or in editable content.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS whenEnabled('FindString') is 'always'
7 PASS whenEnabled('Print') is 'always'
8 PASS whenEnabled('SelectAll') is 'always'
9 PASS whenEnabled('Transpose') is 'caret'
10 PASS whenEnabled('Copy') is 'range'
11 PASS whenEnabled('Cut') is 'editable range'
12 PASS whenEnabled('RemoveFormat') is 'editable range'
13 PASS whenEnabled('Delete') is 'editable'
14 PASS whenEnabled('FontName') is 'editable'
15 PASS whenEnabled('FontSize') is 'editable'
16 PASS whenEnabled('FontSizeDelta') is 'editable'
17 PASS whenEnabled('ForwardDelete') is 'editable'
18 PASS whenEnabled('InsertHTML') is 'editable'
19 PASS whenEnabled('InsertParagraph') is 'editable'
20 PASS whenEnabled('InsertText') is 'editable'
21 PASS whenEnabled('BackColor') is 'richly editable'
22 PASS whenEnabled('Bold') is 'richly editable'
23 PASS whenEnabled('CreateLink') is 'richly editable'
24 PASS whenEnabled('ForeColor') is 'richly editable'
25 PASS whenEnabled('FormatBlock') is 'richly editable'
26 PASS whenEnabled('HiliteColor') is 'richly editable'
27 PASS whenEnabled('Indent') is 'richly editable'
28 PASS whenEnabled('InsertHorizontalRule') is 'richly editable'
29 PASS whenEnabled('InsertImage') is 'richly editable'
30 PASS whenEnabled('InsertNewlineInQuotedContent') is 'richly editable'
31 PASS whenEnabled('InsertOrderedList') is 'richly editable'
32 PASS whenEnabled('InsertUnorderedList') is 'richly editable'
33 PASS whenEnabled('Italic') is 'richly editable'
34 PASS whenEnabled('JustifyCenter') is 'richly editable'
35 PASS whenEnabled('JustifyFull') is 'richly editable'
36 PASS whenEnabled('JustifyLeft') is 'richly editable'
37 PASS whenEnabled('JustifyNone') is 'richly editable'
38 PASS whenEnabled('JustifyRight') is 'richly editable'
39 PASS whenEnabled('Outdent') is 'richly editable'
40 PASS whenEnabled('Strikethrough') is 'richly editable'
41 PASS whenEnabled('Subscript') is 'richly editable'
42 PASS whenEnabled('Superscript') is 'richly editable'
43 PASS whenEnabled('Underline') is 'richly editable'
44 PASS whenEnabled('Paste') is 'editable'
45 PASS whenEnabled('PasteAndMatchStyle') is 'editable'
46 PASS whenEnabled('Unlink') is 'richly editable range'
47 PASS whenEnabled('Unselect') is 'visible'
48 PASS successfullyParsed is true