servo/tests/unit
bors-servo 665559556f Auto merge of #12406 - izgzhen:refactor-file, r=Manishearth
Refactor FileAPI implementation

Most are simple refactoring, cleanups and improvements, but still involving two slightly notable changes:

+ In `filemanager`, now we read the file content based on requested `RelativePos` by `seek` and `read_exact` (rather than `read_to_end` then do slicing). This strategy might be again adjusted in future performance tuning but certainly better than nothing.
+ Also, I cached more file meta-info in both sides and left a block of comment on `filemanager`'s file reading mentioning the snapshot-state problem (not solved now though).

r? @Manishearth

<!-- 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

<!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12406)
<!-- Reviewable:end -->
2016-07-12 22:00:08 -07:00
..
gfx Don't load all font faces sources 2016-06-10 21:51:06 +02:00
layout Remove the wrapper::ServoThreadSafeLayoutNode re-export. 2016-06-20 19:08:09 +02:00
net Auto merge of #12406 - izgzhen:refactor-file, r=Manishearth 2016-07-12 22:00:08 -07:00
net_traits Move trim_http_whitespace to net_traits. 2016-06-07 14:20:08 +02:00
profile Add test to assert that servo panics when the length of a given data is zero. 2016-07-07 13:14:35 -07:00
script Add unit test for setting selection with selection direction 2016-07-06 22:38:23 -06:00
style Move util::cache to style. 2016-07-08 16:44:47 +02:00
util Move util::cache to style. 2016-07-08 16:44:47 +02:00