From a3b271266c3d06ed7caf581103a2c7e07f1668ec Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 26 Apr 2016 16:05:24 +0200 Subject: Make css-properties.json checking a proper unit test. --- python/servo/testing_commands.py | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'python/servo/testing_commands.py') 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") -- cgit v1.2.3