Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate html and json of supported css properties. #10208

Merged
merged 5 commits into from Mar 29, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Changed mach test to use generated json file of properties

  • Loading branch information
jrasanen committed Mar 28, 2016
commit 5098ad7d9308f6b3e43d4cc933e2dcbc004fb55d
@@ -23,7 +23,6 @@
)

json_dump = json.dumps(properties, indent=4)
print(json_dump)

#
# Resolve path to doc directory and write CSS properties and JSON.
@@ -163,10 +163,17 @@ def test(self, params, render_mode=DEFAULT_RENDER_MODE, release=False, faster=Fa
@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 = json.loads(subprocess.check_output([
subprocess.check_output([
sys.executable,
path.join(self.context.topdir, "components", "style", "list_properties.py")
]))
])

this_file = style = os.path.dirname(__file__)
servo_doc_path = os.path.abspath(os.path.join(this_file, '../', '../', 'target', 'doc', 'servo'))

with open(os.path.join(servo_doc_path, 'css-properties.json'), 'r') as property_file:
properties = json.loads(property_file.read())

assert len(properties) >= 100
assert "margin-top" in properties
assert "margin" in properties
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.