Bug 141826

Summary: [WebEditingTester] Factor out list of editing operations
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, commit-queue, enrica, sam, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch sam: review+

Description Tim Horton 2015-02-20 02:01:24 PST
[WebEditingTester] Factor out list of editing operations
Comment 1 Tim Horton 2015-02-20 02:01:46 PST
Created attachment 246947 [details]
Patch
Comment 2 WebKit Commit Bot 2015-02-20 02:04:14 PST
Attachment 246947 [details] did not pass style-queue:


ERROR: Tools/WebEditingTester/EditingOperations.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/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 2 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sam Weinig 2015-02-20 10:05:26 PST
Comment on attachment 246947 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=246947&action=review

> Tools/WebEditingTester/EditingOperations.m:35
> +    static NSArray *operationNames;
> +    static dispatch_once_t onceToken;
> +    dispatch_once(&onceToken, ^{
> +        operationNames = @[

I don't think you need the dispatch_once here.  I think you can just return the array literal.
Comment 4 Tim Horton 2015-02-20 11:14:14 PST
http://trac.webkit.org/changeset/180425