diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-04-26 16:05:24 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-04-28 15:41:30 +0200 |
commit | a3b271266c3d06ed7caf581103a2c7e07f1668ec (patch) | |
tree | ae6b62dd0696cd5f5a002a8dba07892c79cffe37 /python/servo/testing_commands.py | |
parent | cb42be98279348981951933aeee4b1bfcf1517d1 (diff) | |
download | servo-a3b271266c3d06ed7caf581103a2c7e07f1668ec.tar.gz servo-a3b271266c3d06ed7caf581103a2c7e07f1668ec.zip |
Make css-properties.json checking a proper unit test.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index f0eccee59af..ee6fbd05837 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -14,8 +14,6 @@ import re import sys import os import os.path as path -import subprocess -import json from collections import OrderedDict from time import time @@ -141,8 +139,6 @@ class MachCommands(CommandBase): @CommandArgument('test_name', nargs=argparse.REMAINDER, help="Only run tests that match this pattern or file path") def test_unit(self, test_name=None, package=None): - check_css_properties_json(self.context.topdir) - if test_name is None: test_name = [] @@ -657,23 +653,3 @@ testing/web-platform/mozilla/tests for Servo-only tests""" % reference_path) if editor: proc.wait() - - -def check_css_properties_json(topdir): - print("Testing generation of css-properties.json...") - filename = path.join(topdir, "target", "doc", "servo", "css-properties.json") - - if path.exists(filename): - os.remove(filename) - subprocess.check_call([ - sys.executable, - path.join(topdir, "components", "style", "properties", "build.py"), - "servo", - "html", - ]) - properties = json.load(open(filename)) - - assert len(properties) >= 100 - assert "margin-top" in properties - assert "margin" in properties - print("OK") |