diff options
author | coalman <tehcoalman@gmail.com> | 2017-04-17 03:45:30 -0400 |
---|---|---|
committer | coalman <tehcoalman@gmail.com> | 2017-04-18 14:56:03 -0400 |
commit | 57e74542ee0b33bf103064a194f4d7ba27ea5b49 (patch) | |
tree | bb92f0ff2aa4aa185e3f23b8ec02178f45b33a97 /python/tidy/servo_tidy_tests/test_tidy.py | |
parent | a754c10e79ef237b500bbf173eb7ba43529e51eb (diff) | |
download | servo-57e74542ee0b33bf103064a194f4d7ba27ea5b49.tar.gz servo-57e74542ee0b33bf103064a194f4d7ba27ea5b49.zip |
Make tidy check that opening and closing braces that begin a line do so with proper alignment.
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index a50d92b241e..07dbaa020dc 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -131,6 +131,8 @@ class CheckTidiness(unittest.TestCase): self.assertEqual('extra space after (', errors.next()[2]) self.assertEqual('extra space after test_fun', errors.next()[2]) self.assertEqual('no = in the beginning of line', errors.next()[2]) + self.assertEqual('space before { is not a multiple of 4', errors.next()[2]) + self.assertEqual('space before } is not a multiple of 4', errors.next()[2]) self.assertNoMoreErrors(errors) feature_errors = tidy.collect_errors_for_files(iterFile('lib.rs'), [], [tidy.check_rust], print_text=False) |