diff options
author | Timur Borkhodoev <timur.borkhodoev@mail.utoronto.ca> | 2018-02-01 15:57:11 -0500 |
---|---|---|
committer | Timur Borkhodoev <timur.borkhodoev@mail.utoronto.ca> | 2018-02-01 15:57:11 -0500 |
commit | bcb4bd2f3013ef8c415cf0f69143347a0cc6f78b (patch) | |
tree | 58a4f7e109a7cb0ded6690f91990c2b9aead19ae /python/tidy/servo_tidy_tests | |
parent | 41bf86631ba682d277baa5201d799f5ad3b147e1 (diff) | |
download | servo-bcb4bd2f3013ef8c415cf0f69143347a0cc6f78b.tar.gz servo-bcb4bd2f3013ef8c415cf0f69143347a0cc6f78b.zip |
Add self-test and modify tidy to accomodate the test
Diffstat (limited to 'python/tidy/servo_tidy_tests')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index 432d5c1117e..1c4a055a665 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -33,6 +33,11 @@ class CheckTidiness(unittest.TestCase): self.assertEqual("ignored directory './fake/dir' doesn't exist", errors.next()[2]) self.assertNoMoreErrors(errors) + def test_wpt_manifest_checks(self): + wrong_path = "/wrong/path.ini" + errors = tidy.check_manifest_dirs(wrong_path) + self.assertEqual("%s manifest file is required but was not found" % wrong_path, errors.next()[2]) + def test_directory_checks(self): dirs = { os.path.join(base_path, "dir_check/webidl_plus"): ['webidl', 'test'], |