Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd filepicker #11717
Add filepicker #11717
Conversation
highfive
commented
Jun 10, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 10, 2016
|
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. |
highfive
commented
Jun 12, 2016
|
New code was committed to pull request. |
|
The test-unit is fixed. Still have filter pattern to fill. |
highfive
commented
Jun 12, 2016
|
New code was committed to pull request. |
| @@ -1228,3 +1230,8 @@ impl Activatable for HTMLInputElement { | |||
| } | |||
| } | |||
| } | |||
|
|
|||
| fn filter_from_accept(_s: DOMString) -> Vec<FilterPattern> { | |||
| unimplemented!() | |||
This comment has been minimized.
This comment has been minimized.
Manishearth
Jun 14, 2016
Member
should we just return an empty vector with a todo so that this doesn't crash?
This comment has been minimized.
This comment has been minimized.
izgzhen
Jun 14, 2016
Author
Contributor
@Manishearth I contacted upstream, and the functionality necessary for this is implemented, so I am waiting for him to upload the new version actually
This comment has been minimized.
This comment has been minimized.
Manishearth
Jun 14, 2016
•
Member
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?
This comment has been minimized.
This comment has been minimized.
|
r=me with that unimplemented replaced with an empty vec and a todo @bors-servo delegate+ |
|
|
highfive
commented
Jun 14, 2016
|
New code was committed to pull request. |
|
@bors-servo r=Manishearth |
|
|
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 -->
|
|
|
Ahh nice Windows..... = = I should have thought that |
|
|
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; |
highfive
commented
Jun 14, 2016
|
New code was committed to pull request. |
|
@bors-servo r+ |
|
|
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 -->
|
|
highfive
commented
Jun 14, 2016
|
|
@bors-servo: retry |
|
|
|
|
highfive
commented
Jun 14, 2016
|
|
@bors-servo: retry |
|
|
|
|
izgzhen commentedJun 10, 2016
•
edited
Add file picker based on tinyfiledialog to the file manager implementation.
Changes:
htmlinputelementto make things workRelated to #11131.
This change is