We need a tool that can test both WK1 and WK2 views in editable mode.
Created attachment 246851 [details] Patch
Attachment 246851 [details] did not pass style-queue: ERROR: Tools/WebEditingTester/WK2WebDocumentController.h:31: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Tools/WebEditingTester/AppDelegate.h:29: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Tools/WebEditingTester/AppDelegate.m:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WebEditingTester/AppDelegate.m:96: When wrapping a line, only indent 4 spaces. [whitespace/indent] [3] ERROR: Tools/WebEditingTester/AppDelegate.m:206: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Tools/WebEditingTester/WK2WebDocumentController.m:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WebEditingTester/main.m:28: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Tools/WebEditingTester/WK1WebDocumentController.m:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WebEditingTester/WK1WebDocumentController.m:30: Alphabetical sorting problem. [build/include_order] [4] ERROR: Tools/WebEditingTester/WebDocumentController.m:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WebEditingTester/WebDocumentController.h:33: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 11 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
I've fixed the style issues.
Comment on attachment 246851 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246851&action=review > Tools/WebEditingTester/AppDelegate.h:34 > + IBOutlet NSPanel *operationsPanel; Underscore? > Tools/WebEditingTester/AppDelegate.m:68 > + for (WebDocumentController* documents in _webDocuments) Star's on the wrong side. > Tools/WebEditingTester/AppDelegate.m:95 > + static const char *operationNames[] = { Is there any reason this isn't an NSArray of NSStrings? @[ @"alignCenter", @"...", ... ] Also, the names are only ever used with trailing colons, so maybe they should be here that way, instead of appending them below? Also, is it possible to detect or generate or something this list so we don't have to keep it up to date? > Tools/WebEditingTester/AppDelegate.m:238 > + [[button cell] setControlSize:NSMiniControlSize]; More dot notation in more places! (if you want :D) Also, probably this project should use ARC? > Tools/WebEditingTester/Info.plist:12 > + <string>Apple.WebEditingTester</string> org.webkit.WebEditingTester, maybe? > Tools/WebEditingTester/WebDocumentController.m:39 > + self.window.styleMask |= NSFullSizeContentViewWindowMask; This seems like something you should be able to do in Interface Builder, no?
Thanks for the review! I've addressed your feedback. > > Tools/WebEditingTester/AppDelegate.m:95 > > + static const char *operationNames[] = { > > Is there any reason this isn't an NSArray of NSStrings? @[ @"alignCenter", > @"...", ... ] > Also, the names are only ever used with trailing colons, so maybe they > should be here that way, instead of appending them below? > yes... just copied from Blot :-) > Also, is it possible to detect or generate or something this list so we > don't have to keep it up to date? I'm not sure about that. Many are NSResponder methods but we have some WebKit specific ones.
Committed revision 180348.