Display children for test failures

This commit is contained in:
Christopher Chedeau
2015-05-08 17:01:11 -07:00
parent 329bbfd569
commit 8cdf0d0228

View File

@@ -109,12 +109,12 @@ int tests_finished() {
printf("%sFAIL%s %s\n", "\x1B[31m", "\x1B[0m", failed_test->name); printf("%sFAIL%s %s\n", "\x1B[31m", "\x1B[0m", failed_test->name);
printf("Input: "); printf("Input: ");
print_css_node(failed_test->style, CSS_PRINT_STYLE); print_css_node(failed_test->style, CSS_PRINT_STYLE | CSS_PRINT_CHILDREN);
printf("Output: "); printf("Output: ");
print_css_node(failed_test->style, CSS_PRINT_LAYOUT); print_css_node(failed_test->style, CSS_PRINT_LAYOUT | CSS_PRINT_CHILDREN);
printf("Expected: "); printf("Expected: ");
print_css_node(failed_test->expected, CSS_PRINT_LAYOUT); print_css_node(failed_test->expected, CSS_PRINT_LAYOUT | CSS_PRINT_CHILDREN);
free_css_node(failed_test->style); free_css_node(failed_test->style);
free_css_node(failed_test->expected); free_css_node(failed_test->expected);