aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/test.py
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-01-16 08:38:58 +0100
committerGitHub <noreply@github.com>2025-01-16 07:38:58 +0000
commit725659059905b993ba8f230f7bcd30e514110ab0 (patch)
tree1b2077391d16e3f21da9fbe026e0ae0bf17c1065 /python/tidy/test.py
parent3225d196fa2ce766e63821344a24bdafa4317ca3 (diff)
downloadservo-725659059905b993ba8f230f7bcd30e514110ab0.tar.gz
servo-725659059905b993ba8f230f7bcd30e514110ab0.zip
Remove `resources/prefs.json` (#34999)
This file is not used any longer. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'python/tidy/test.py')
-rw-r--r--python/tidy/test.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/python/tidy/test.py b/python/tidy/test.py
index a55bdc0ee24..98c50c3dcf4 100644
--- a/python/tidy/test.py
+++ b/python/tidy/test.py
@@ -186,22 +186,6 @@ class CheckTidiness(unittest.TestCase):
self.assertEqual('emacs file variables present', next(errors)[2])
self.assertNoMoreErrors(errors)
- def test_malformed_json(self):
- errors = tidy.collect_errors_for_files(iterFile('malformed_json.json'), [tidy.check_json], [], print_text=False)
- self.assertEqual('Invalid control character at: line 3 column 40 (char 61)', next(errors)[2])
- self.assertNoMoreErrors(errors)
-
- def test_json_with_duplicate_key(self):
- errors = tidy.collect_errors_for_files(iterFile('duplicate_key.json'), [tidy.check_json], [], print_text=False)
- self.assertEqual('Duplicated Key (the_duplicated_key)', next(errors)[2])
- self.assertNoMoreErrors(errors)
-
- def test_json_with_unordered_keys(self):
- tidy.config["check-ordered-json-keys"].append('python/tidy/tests/unordered_key.json')
- errors = tidy.collect_errors_for_files(iterFile('unordered_key.json'), [tidy.check_json], [], print_text=False)
- self.assertEqual('Unordered key (found b before a)', next(errors)[2])
- self.assertNoMoreErrors(errors)
-
def test_file_list(self):
file_path = os.path.join(BASE_PATH, 'test_ignored')
file_list = tidy.FileList(file_path, only_changed_files=False, exclude_dirs=[], progress=False)