Display children for test failures
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user