[ALOY-737] ALLOY: Integrate xml2tss
|Fix Version/s||Alloy 1.2.0, 2013 Sprint 14|
DescriptionSee https://github.com/appcelerator/alloy/pull/165 for the full discussion.
- Tony Lukasavage 2013-07-10
The automated unit tests
jake test:allwill confirm that existing behavior has not been negatively impacted. To pass functional testing, Follow these steps: 1. Create a new Alloy app 2. Create a new view manually, named for exmaple "foo.xml". Make sure this view contains multiple elements and use a few different *id* and *class* values. 3. run
alloy generate style foofrom the CLI 4. Inspect the resulting "app/styles/foo.tss" file and ensure that empty style entries have been created for all ids and classes from the view created in step #2. 5. Repeat steps 2-4 for a few more views. 6. If all looks good, delete all styles from "app/styles" 7. run
alloy generate style --allfrom the CLI 8. Go to the "app/styles" folder and ensure that new styles have been created for all views, and that all those styles contain the appropriate empty style entries for each id and class contained in the corresponding views.
- Federico Casali 2013-08-03