Summary: | Add basic layout test coverage for File Picker on iOS | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||
Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | commit-queue, conrad_shultz, ggaren, thorton, webkit-bug-importer, wenson_hsieh | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=196205 https://bugs.webkit.org/show_bug.cgi?id=213314 |
||||||||||
Bug Depends on: | 196405 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
Description
Chris Dumez
2019-03-26 12:19:43 PDT
Created attachment 365984 [details]
Patch
Created attachment 365989 [details]
Patch
Comment on attachment 365989 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365989&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:7018 > + auto* result = @{ userInterfaceItem: [_fileUploadPanel currentAvailableActionTitles] }; Nit - would be cleaner just to return @{ ~ } > Tools/WebKitTestRunner/ios/TestControllerIOS.mm:53 > +static void overridePresentViewController() Nit - maybe overridePresentViewControllerOrPopover, since it's used for both purposes? > LayoutTests/fast/forms/ios/file-upload-panel.html:62 > + UIHelper.activateElement(testInput).then(() => { > + getFileUploadPickerMenuItems().then((_items) => { > + items = _items; > + shouldBeTrue("areArraysEqual(items, " + expectedMenuItems + ")"); > + debug(""); > + dismissFilePicker().then(() => { resolve(); }); > + }); > + }); Nit - IMO this function could be made cleaner using async - await, but either way it's fine. Created attachment 365999 [details]
Patch
Comment on attachment 365999 [details] Patch Clearing flags on attachment: 365999 Committed r243523: <https://trac.webkit.org/changeset/243523> All reviewed patches have been landed. Closing bug. |