servo/tests/unit
bors-servo b34fdf6234 Auto merge of #15690 - vwvww:issue_14898, r=Wafflespeanut
Add 'use statements with extraneous spaces' tidy check

Add 'use statements with extraneous spaces' tidy check

I added simple check routine for 'use statements with extraneous
spaces' and codes that breaks the check routine in rust_tidy.rs.

* Added a code that using 'use statements with extraneous spaces' code
  in rust_tidy.rs
* Added assertion code in test_tidy.py.
* check_rust function in tidy.py now recognizes the simple case in
  the 'use statements with extraneous spaces'.
* Ran tidy check on rust code and modified a
  code(tests/unit/style/parsing/inherited_text.rs) that is not passing
  on this new tidy check.

TODO: this code has to be refactored to support more general cases, such as tab or newline.

- [X] `./mach build -d` does not report any errors
- [X] ./mach test-tidy does not report any errors
- [X] These changes fix #14898 (github issue number if applicable).
- [X] These changes do not require tests because ./mach test-tidy itself is the test for the code.

<!-- 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/15690)
<!-- Reviewable:end -->
2017-02-22 21:19:08 -08:00
..
gfx Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
layout #13262 Add a unit test verifying that SpecificFragmentInfo size 2016-09-25 10:35:39 +02:00
net Add ImmutableOrigin to allow for serializing origins 2017-02-22 11:11:59 -06:00
net_traits Moved pub_domains to net_traits and did a spring clean. 2016-09-29 17:28:47 -05:00
profile Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
script Add ImmutableOrigin to allow for serializing origins 2017-02-22 11:11:59 -06:00
servo_config Allow cli prefs to have numerical value 2017-01-05 19:32:14 +01:00
servo_remutex Removed util. 2016-12-14 18:04:37 -06:00
style Auto merge of #15690 - vwvww:issue_14898, r=Wafflespeanut 2017-02-22 21:19:08 -08:00
stylo Simplify defining arc ffi types 2017-02-23 10:22:39 +11:00