Make the properties list JSON and add some more info.

This commit is contained in:
Simon Sapin 2016-01-15 16:18:58 +01:00
parent 9d29c3d2f5
commit 2222f345c8
2 changed files with 18 additions and 7 deletions

View file

@ -15,6 +15,7 @@ import sys
import os
import os.path as path
import subprocess
import json
from collections import OrderedDict
from time import time
@ -158,10 +159,10 @@ 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([
properties = json.loads(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