Add tests for NeverDestroyed. Specifically to test the case changed with: https://bugs.webkit.org/show_bug.cgi?id=175113 https://trac.webkit.org/changeset/220183/webkit
Created attachment 317137 [details] [PATCH] Proposed Fix Is this what you guys were thinking? Any other specific tests you want me to add? I considered a test of NeverDestroyed with a RefCounted objects (these cases trigger relaxAdoptionRequirement) but there are cases of this in other TestWebKitAPI tests and it seems this would be about assertions.
Attachment 317137 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:29: Alphabetical sorting problem. [build/include_order] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:36: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:39: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:42: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:87: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:90: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:93: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:96: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:99: More than one command on the same line [whitespace/newline] [4] Total errors found: 9 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 317138 [details] [PATCH] Proposed Fix
Attachment 317138 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:29: Alphabetical sorting problem. [build/include_order] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:36: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:39: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:42: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:87: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:90: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:93: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:96: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:99: More than one command on the same line [whitespace/newline] [4] Total errors found: 9 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 317141 [details] [PATCH] Proposed Fix
Attachment 317141 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:36: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:39: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/NeverDestroyed.cpp:42: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:87: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:90: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:93: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:96: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/LifecycleLogger.cpp:99: More than one command on the same line [whitespace/newline] [4] Total errors found: 8 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 317141 [details] [PATCH] Proposed Fix Clearing flags on attachment: 317141 Committed r220284: <http://trac.webkit.org/changeset/220284>
All reviewed patches have been landed. Closing bug.