swap space_around and between. all tests pass!

This commit is contained in:
Christopher Chedeau
2014-04-19 15:21:57 -07:00
parent 13e7e3168b
commit 94aedd25f6
2 changed files with 5 additions and 5 deletions

View File

@@ -645,7 +645,7 @@ int main()
css_node_t *root_node = new_css_node(); css_node_t *root_node = new_css_node();
{ {
css_node_t *node = root_node; css_node_t *node = root_node;
node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN;
node->style.dimensions[CSS_WIDTH] = 1000; node->style.dimensions[CSS_WIDTH] = 1000;
node->style.dimensions[CSS_HEIGHT] = 1000; node->style.dimensions[CSS_HEIGHT] = 1000;
init_css_node_children(node, 2); init_css_node_children(node, 2);
@@ -692,7 +692,7 @@ int main()
css_node_t *root_node = new_css_node(); css_node_t *root_node = new_css_node();
{ {
css_node_t *node = root_node; css_node_t *node = root_node;
node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND;
node->style.dimensions[CSS_WIDTH] = 1000; node->style.dimensions[CSS_WIDTH] = 1000;
node->style.dimensions[CSS_HEIGHT] = 1000; node->style.dimensions[CSS_HEIGHT] = 1000;
init_css_node_children(node, 2); init_css_node_children(node, 2);
@@ -1615,7 +1615,7 @@ int main()
css_node_t *root_node = new_css_node(); css_node_t *root_node = new_css_node();
{ {
css_node_t *node = root_node; css_node_t *node = root_node;
node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND;
node->style.dimensions[CSS_HEIGHT] = 10; node->style.dimensions[CSS_HEIGHT] = 10;
node->style.padding[CSS_TOP] = 5; node->style.padding[CSS_TOP] = 5;
init_css_node_children(node, 1); init_css_node_children(node, 1);

View File

@@ -102,8 +102,8 @@ function printLayout(test) {
'flex-start': 'CSS_JUSTIFY_FLEX_START', 'flex-start': 'CSS_JUSTIFY_FLEX_START',
'center': 'CSS_JUSTIFY_CENTER', 'center': 'CSS_JUSTIFY_CENTER',
'flex-end': 'CSS_JUSTIFY_FLEX_END', 'flex-end': 'CSS_JUSTIFY_FLEX_END',
'space-between': 'CSS_JUSTIFY_SPACE_AROUND', 'space-between': 'CSS_JUSTIFY_SPACE_BETWEEN',
'space-around': 'CSS_JUSTIFY_SPACE_BETWEEN' 'space-around': 'CSS_JUSTIFY_SPACE_AROUND'
}); });
addEnum(node, 'alignItems', 'align_items', { addEnum(node, 'alignItems', 'align_items', {
'flex-start': 'CSS_ALIGN_FLEX_START', 'flex-start': 'CSS_ALIGN_FLEX_START',