aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2016-01-15 15:50:32 +0100
committerSimon Sapin <simon.sapin@exyr.org>2016-01-15 15:50:32 +0100
commit9d29c3d2f52946e02c92ce7c31ac74433c2c6f8e (patch)
treef59489e7402e93cf83d611c690d88ff1a5409922 /python/servo/testing_commands.py
parent679d1280dd0581621ed55cafc3a863d39ecd6934 (diff)
downloadservo-9d29c3d2f52946e02c92ce7c31ac74433c2c6f8e.tar.gz
servo-9d29c3d2f52946e02c92ce7c31ac74433c2c6f8e.zip
Add a script to list all CSS properties parsed by Servo.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py8
1 files changed, 8 insertions, 0 deletions
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 = []