Make the Exactness error report valid XHTML 1.0 Strict.

This commit is contained in:
Tom Hacohen 2013-05-15 17:20:00 +01:00
parent 11cc575120
commit 3e4c93bd83
1 changed files with 5 additions and 4 deletions

View File

@ -179,12 +179,13 @@ main(int argc, char *argv[])
report_file = fopen(report_filename, "w+");
printf("%s %p\n", report_filename, 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\" \"\">"
"<html xmlns=\"\"><head><title>Exactness report</title></head><body>");
if (exactness_ctx.errors)
"<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)
"<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);
fprintf(report_file, "</ul>");