REGRESSION (r241988): Switching tabs is slow
[WebKit-https.git] / Tools / WebEditingTester / EditingOperations.m
1 /*
2  * Copyright (C) 2015 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #import "EditingOperations.h"
27
28 #import <Foundation/Foundation.h>
29
30 NSArray *editingOperations()
31 {
32     return @[
33         @"alignCenter:",
34         @"alignJustified:",
35         @"alignLeft:",
36         @"alignRight:",
37         @"capitalizeWord:",
38         @"centerSelectionInVisibleArea:",
39         @"changeCaseOfLetter:",
40         @"checkSpelling:",
41         @"complete:",
42         @"copy:",
43         @"copyFont:",
44         @"cut:",
45         @"delete:",
46         @"deleteBackward:",
47         @"deleteBackwardByDecomposingPreviousCharacter:",
48         @"deleteForward:",
49         @"deleteToBeginningOfLine:",
50         @"deleteToBeginningOfParagraph:",
51         @"deleteToEndOfLine:",
52         @"deleteToEndOfParagraph:",
53         @"deleteToMark:",
54         @"deleteWordBackward:",
55         @"deleteWordForward:",
56         @"ignoreSpelling:",
57         @"indent:",
58         @"insertBacktab:",
59         @"insertLineBreak:",
60         @"insertNewline:",
61         @"insertNewlineIgnoringFieldEditor:",
62         @"insertParagraphSeparator:",
63         @"insertTab:",
64         @"insertTabIgnoringFieldEditor:",
65         @"insertTable:",
66         @"lowercaseWord:",
67         @"moveBackward:",
68         @"moveBackwardAndModifySelection:",
69         @"moveDown:",
70         @"moveDownAndModifySelection:",
71         @"moveForward:",
72         @"moveForwardAndModifySelection:",
73         @"moveLeft:",
74         @"moveLeftAndModifySelection:",
75         @"moveParagraphBackwardAndModifySelection:",
76         @"moveParagraphForwardAndModifySelection:",
77         @"moveRight:",
78         @"moveRightAndModifySelection:",
79         @"moveToBeginningOfDocument:",
80         @"moveToBeginningOfDocumentAndModifySelection:",
81         @"moveToBeginningOfSentence:",
82         @"moveToBeginningOfSentenceAndModifySelection:",
83         @"moveToBeginningOfLine:",
84         @"moveToBeginningOfLineAndModifySelection:",
85         @"moveToBeginningOfParagraph:",
86         @"moveToBeginningOfParagraphAndModifySelection:",
87         @"moveToEndOfDocument:",
88         @"moveToEndOfDocumentAndModifySelection:",
89         @"moveToEndOfSentence:",
90         @"moveToEndOfSentenceAndModifySelection:",
91         @"moveToEndOfLine:",
92         @"moveToEndOfLineAndModifySelection:",
93         @"moveToEndOfParagraph:",
94         @"moveToEndOfParagraphAndModifySelection:",
95         @"moveUp:",
96         @"moveUpAndModifySelection:",
97         @"moveWordBackward:",
98         @"moveWordBackwardAndModifySelection:",
99         @"moveWordForward:",
100         @"moveWordForwardAndModifySelection:",
101         @"moveWordLeft:",
102         @"moveWordLeftAndModifySelection:",
103         @"moveWordRight:",
104         @"moveWordRightAndModifySelection:",
105         @"outdent:",
106         @"outline:",
107         @"pageDown:",
108         @"pageDownAndModifySelection:",
109         @"pageUp:",
110         @"pageUpAndModifySelection:",
111         @"paste:",
112         @"pasteAsPlainText:",
113         @"pasteAsRichText:",
114         @"pasteFont:",
115         @"scrollLineDown:",
116         @"scrollLineUp:",
117         @"scrollPageDown:",
118         @"scrollPageUp:",
119         @"selectAll:",
120         @"selectSentence:",
121         @"selectLine:",
122         @"selectParagraph:",
123         @"selectToMark:",
124         @"selectWord:",
125         @"setMark:",
126         @"showGuessPanel:",
127         @"startSpeaking:",
128         @"stopSpeaking:",
129         @"subscript:",
130         @"superscript:",
131         @"swapWithMark:",
132         @"takeFindStringFromSelection:",
133         @"toggleContinuousSpellChecking:",
134         @"toggleSmartInsertDelete:",
135         @"transpose:",
136         @"transposeWords:",
137         @"underline:",
138         @"unscript:",
139         @"uppercaseWord:",
140         @"yank:",
141         @"yankAndSelect:"
142     ];
143 }