Repository navigation
Add filepicker - #11717
Add filepicker #11717
Conversation
|
Heads up! This PR modifies the following files:
|
|
Still work in progress, I have one doubt about how to refactor the original unit test of filemanager_thread (tests/unit/net/filemanager_thread.rs): Since we are sending a |
|
Forget to mention: Another problem is we might need an inverse of |
|
Make it testable the same way we test HTTP authorization dialogs: use a trait in the code that invokes the UI, and have tests provide an implementation that doesn't use the actual dialog. |
|
Yeah, that's a better solution. |
|
New code was committed to pull request. |
|
The test-unit is fixed. Still have filter pattern to fill. |
|
New code was committed to pull request. |
| } | ||
|
|
||
| fn filter_from_accept(_s: DOMString) -> Vec<FilterPattern> { | ||
| unimplemented!() |
There was a problem hiding this comment.
should we just return an empty vector with a todo so that this doesn't crash?
There was a problem hiding this comment.
@Manishearth I contacted upstream, and the functionality necessary for this is implemented, so I am waiting for him to upload the new version actually 😅
There was a problem hiding this comment.
Nice!
So that this can merge, though, could we still use the empty vec (till that gets implemented) so that it doesn't crash and can be used?
There was a problem hiding this comment.
good, I will fix it another day
|
r=me with that unimplemented replaced with an empty vec and a todo @bors-servo delegate+ |
|
✌️ @izgzhen can now approve this pull request |
|
New code was committed to pull request. |
|
@bors-servo r=Manishearth |
|
📌 Commit 0406f1b has been approved by |
Add filepicker Add file picker based on tinyfiledialog to the file manager implementation. Changes: - [x] Add the picker invocation code - [x] Rewrite unit test to accommodate the change - [x] Patch up `htmlinputelement` to make things work <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes are related to #11131. <!-- Either: --> - [x] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11717) <!-- Reviewable:end -->
|
💔 Test failed - windows |
|
Ahh nice Windows..... = = I should have thought that |
|
New code was committed to pull request. |
Add filepicker Add file picker based on tinyfiledialog to the file manager implementation. Changes: - [x] Add the picker invocation code - [x] Rewrite unit test to accommodate the change - [x] Patch up `htmlinputelement` to make things work <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes are related to #11131. <!-- Either: --> - [x] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11717) <!-- Reviewable:end -->
|
💔 Test failed - windows |
C:\buildbot\slave\windows\build\components\net\filemanager_thread.rs:17:5: 17:20 error: unresolved import `tinyfiledialogs`. There is no `tinyfiledialogs` in the crate root [E0432]
C:\buildbot\slave\windows\build\components\net\filemanager_thread.rs:17 use tinyfiledialogs; |
|
New code was committed to pull request. |
|
@bors-servo r+ |
|
📌 Commit 256c7e8 has been approved by |
Add filepicker Add file picker based on tinyfiledialog to the file manager implementation. Changes: - [x] Add the picker invocation code - [x] Rewrite unit test to accommodate the change - [x] Patch up `htmlinputelement` to make things work <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes are related to #11131. <!-- Either: --> - [x] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11717) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
⚡ Previous build results for android, arm32, arm64, linux-dev, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel, mac-dev-unit, mac-rel-css... |
|
💔 Test failed - linux-rel |
|
|
⚡ Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel... |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
Add file picker based on tinyfiledialog to the file manager implementation.
Changes:
htmlinputelementto make things workRelated to #11131.
This change is