diff options
author | 2011-08-12 00:10:20 +0200 | |
---|---|---|
committer | 2011-08-12 00:10:20 +0200 | |
commit | a90ac95ab4bc14e0646ac23793799429166dd18b (patch) | |
tree | f1877a3c428d0063886245ed075f5d7d8a56c9cf | |
parent | HTML output: split assertion names into (prefix, realname). (diff) | |
download | pms-test-suite-a90ac95ab4bc14e0646ac23793799429166dd18b.tar.gz pms-test-suite-a90ac95ab4bc14e0646ac23793799429166dd18b.tar.bz2 pms-test-suite-a90ac95ab4bc14e0646ac23793799429166dd18b.zip |
HTML output: let assertion prefixes rowspan.
-rw-r--r-- | pmstestsuite/output/html.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pmstestsuite/output/html.py b/pmstestsuite/output/html.py index abcd5af..f423d8f 100644 --- a/pmstestsuite/output/html.py +++ b/pmstestsuite/output/html.py @@ -183,12 +183,13 @@ class HTMLOutput(OutputModule): col = 5 for pm, r in _sorted_pms(tests[t]): table[row][col+1] = BoolCell(r) - for a in r.assertions: + for ai, a in enumerate(r.assertions): if a.name not in test_asserts: test_asserts.append(a.name) crow = row + test_asserts.index(a.name) if a.prefix is not None: - table[crow][2] = a.prefix + if ai == 0 or table[crow-1][2] != a.prefix: + table[crow][2] = a.prefix table[crow][3] = a.unprefixed_name else: table[crow][2] = TD(a.name, colspan = 2) |