From 9d29c3d2f52946e02c92ce7c31ac74433c2c6f8e Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 15 Jan 2016 15:50:32 +0100 Subject: Add a script to list all CSS properties parsed by Servo. --- python/servo/testing_commands.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/servo/testing_commands.py') diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 9892a0e6669..80d4515c8e4 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -158,6 +158,14 @@ 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): + properties = subprocess.check_output([ + sys.executable, + path.join(self.context.topdir, "components", "style", "list_properties.py") + ]).splitlines() + assert len(properties) >= 100 + assert "margin-top" in properties + assert "margin" in properties + if test_name is None: test_name = [] -- cgit v1.2.3