summaryrefslogtreecommitdiff
path: root/test/index.html
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-08-06 18:23:07 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-10-07 23:09:13 +0200
commitf29e7d155f3a2ee75daf63719460348ea2ca0f76 (patch)
treee055301dafe8afe191a97cb5f936fc2835f3aaa0 /test/index.html
parent4e064b3a32e4d699a6494bf9d8dbcd7b8d9cbc64 (diff)
downloadcairo-f29e7d155f3a2ee75daf63719460348ea2ca0f76.tar.gz
test: Add a new test result html page
This page uses JavaScript to parse test log files and create the test table according to the results. It also allows dynamic selection and hiding of rows/columns based on a chosen parameter and table structure change, by dragging a field from rows to columns and vice versa. Left click selects the cells with the chosen parameter-value association. If these cells are exactly the only show cells, it hides them and shows all the other ones, instead. Right click inverts the visibility of the cells with the chosen parameter-value association. When some rows are hidden, the PASS/NEW/FAIL/XFAIL/CRASH counters show both the currently shown test case count and the total count, if they are different: "23[62]" means that there are 62 test case in that category, but only 23 are currently visible. Dragging a field from the row (or column) header to the column (or row) header rebuilds the table to have that field along the columns (or rows), updating PASS/NEW/FAIL/... counters and showing the whole table again. Test names are hyperlinks to the test log. Images are hyperlinks to themselves.
Diffstat (limited to 'test/index.html')
-rw-r--r--test/index.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html
new file mode 100644
index 000000000..54c65cdc1
--- /dev/null
+++ b/test/index.html
@@ -0,0 +1,42 @@
+<html><head>
+<title>Cairo Test Results</title>
+<style type="text/css">
+#HcolHeader { text-align: center; }
+
+img { max-width: 15em; min-width: 3em; min-height: 3em; margin: 3px; }
+a img { border: solid 1px #FFF; }
+
+td { vertical-align: top; }
+span { cursor: pointer; }
+
+td.PASS { background-color: #0B0; min-width: 1em; }
+span.PASS { color: #0B0; }
+
+td.NEW { background-color: #B70; }
+span.NEW { color: #B70; }
+
+td.FAIL { background-color: #B00; }
+span.FAIL { color: #D00; }
+
+td.XFAIL { background-color: #BB0; }
+span.XFAIL { color: #BB0; }
+
+td.UNTESTED { background-color: #555; }
+span.UNTESTED { color: #555; }
+
+td.CRASHED { background-color: #F00; color: #FF0; }
+span.CRASHED { color: #F00; }
+
+.test { }
+.target { }
+.format { }
+.offset { }
+.similar { }
+
+</style>
+<script language="JavaScript" src="testtable.js"></script>
+</head>
+<body oncontextmenu='ignoreEvent (event)' onmouseup='noDrag (event)'>
+<table id="testTable" border="1"></table>
+</body>
+</html>