Make the Exactness error report valid XHTML 1.0 Strict.
This commit is contained in:
parent
11cc575120
commit
3e4c93bd83
|
@ -179,12 +179,13 @@ main(int argc, char *argv[])
|
|||
report_file = fopen(report_filename, "w+");
|
||||
printf("%s %p\n", report_filename, report_file);
|
||||
fprintf(report_file,
|
||||
"<html><head><title>Exactness report</title></head><body>");
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
|
||||
"<html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title>Exactness report</title></head><body>");
|
||||
|
||||
if (exactness_ctx.errors)
|
||||
{
|
||||
fprintf(report_file,
|
||||
"<h1>Tests that failed execution:</h1><br/><ul>");
|
||||
"<h1>Tests that failed execution:</h1><ul>");
|
||||
Eina_List *itr;
|
||||
List_Entry *ent;
|
||||
printf("List of tests that failed execution:\n");
|
||||
|
@ -200,14 +201,14 @@ main(int argc, char *argv[])
|
|||
if (exactness_ctx.compare_errors)
|
||||
{
|
||||
fprintf(report_file,
|
||||
"<h1>Images that failed comparison: (Original, Current, Diff)</h1><br/><ul>");
|
||||
"<h1>Images that failed comparison: (Original, Current, Diff)</h1><ul>");
|
||||
char *test_name;
|
||||
printf("List of images that failed comparison:\n");
|
||||
EINA_LIST_FREE(exactness_ctx.compare_errors, test_name)
|
||||
{
|
||||
printf("\t* %s\n", test_name);
|
||||
|
||||
fprintf(report_file, "<li><h2>%s</h2> <img src='../orig/%s' /> <img src='%s' /> <img src='comp_%s' /></li>", test_name, test_name, test_name, test_name);
|
||||
fprintf(report_file, "<li><h2>%s</h2> <img src='../orig/%s' alt='Original' /> <img src='%s' alt='Current' /> <img src='comp_%s' alt='Diff' /></li>", test_name, test_name, test_name, test_name);
|
||||
free(test_name);
|
||||
}
|
||||
fprintf(report_file, "</ul>");
|
||||
|
|
Loading…
Reference in New Issue