RESOLVED FIXED 182543
Add API test to validate setting of service worker and cache storage directories
https://bugs.webkit.org/show_bug.cgi?id=182543
Summary Add API test to validate setting of service worker and cache storage directories
youenn fablet
Reported 2018-02-06 11:12:16 PST
Add API test to validate setting of service worker and cache storage directories
Attachments
Patch (26.96 KB, patch)
2018-02-06 11:25 PST, youenn fablet
no flags
Patch (16.72 KB, patch)
2018-02-28 15:40 PST, youenn fablet
no flags
Patch (16.64 KB, patch)
2018-02-28 16:50 PST, youenn fablet
no flags
youenn fablet
Comment 1 2018-02-06 11:25:41 PST
Radar WebKit Bug Importer
Comment 2 2018-02-06 11:26:31 PST
EWS Watchlist
Comment 3 2018-02-06 11:28:27 PST
Attachment 333194 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:842: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:851: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:853: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:862: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:947: Consider using EXPECT_EQ instead of EXPECT_TRUE(a == b) [readability/check] [2] Total errors found: 5 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 4 2018-02-06 15:12:09 PST
Comment on attachment 333194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=333194&action=review > Source/WebCore/testing/Internals.idl:575 > + [Conditional=SERVICE_WORKER] Promise<DOMString> serviceWorkerRegistrationDirectory(); Since this is only used in an API test, I don't think we need this internals API and all this piping through to the SW process. The API test can just check that the path on disk got created. There are existing API tests doing this I believe, I'll point you to one.
Chris Dumez
Comment 5 2018-02-06 15:14:56 PST
Comment on attachment 333194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=333194&action=review >> Source/WebCore/testing/Internals.idl:575 >> + [Conditional=SERVICE_WORKER] Promise<DOMString> serviceWorkerRegistrationDirectory(); > > Since this is only used in an API test, I don't think we need this internals API and all this piping through to the SW process. The API test can just check that the path on disk got created. > There are existing API tests doing this I believe, I'll point you to one. LocalStorageClear is an example of such API test, although it is for the opposite. Also ResourceLoadStatistics.GrandfatherCallback which is closer to what you want I think.
youenn fablet
Comment 6 2018-02-28 15:40:32 PST
EWS Watchlist
Comment 7 2018-02-28 15:42:58 PST
Attachment 334778 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:1036: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:1045: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 8 2018-02-28 16:50:13 PST
EWS Watchlist
Comment 9 2018-02-28 16:52:25 PST
Attachment 334786 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:983: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:992: Multi-line string ("...") found. This lint script doesn't do well with such strings, and may give bogus warnings. They're ugly and unnecessary, and you should use concatenation instead". [readability/multiline_string] [5] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 10 2018-03-01 15:18:34 PST
Comment on attachment 334786 [details] Patch Clearing flags on attachment: 334786 Committed r229150: <https://trac.webkit.org/changeset/229150>
WebKit Commit Bot
Comment 11 2018-03-01 15:18:36 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.