diff options
author | 2016-01-06 09:59:31 +0200 | |
---|---|---|
committer | 2016-01-06 09:59:31 +0200 | |
commit | e1e895a4ee2a8c02367c0472d1b7d64f17067733 (patch) | |
tree | d3cca94e8f1771594b9844c301c6eb9cbf88dc5d /scripts/automation | |
parent | 410d16778d71b46780c152b79dd084938519f17b (diff) |
regression: move style.css inside aggregate_results.py
Diffstat (limited to 'scripts/automation')
-rwxr-xr-x | scripts/automation/regression/aggregate_results.py | 60 | ||||
-rwxr-xr-x | scripts/automation/regression/style.css | 54 |
2 files changed, 58 insertions, 56 deletions
diff --git a/scripts/automation/regression/aggregate_results.py b/scripts/automation/regression/aggregate_results.py index a3a90fbf..cab19d09 100755 --- a/scripts/automation/regression/aggregate_results.py +++ b/scripts/automation/regression/aggregate_results.py @@ -138,6 +138,64 @@ def add_category_of_tests(category, tests, hidden = False, category_info_dir = N html_output += '\n</table>\n</div>' return html_output +style_css = """ +html {overflow-y:scroll;} + +body { + font-size:12px; + color:#000000; + background-color:#ffffff; + margin:0px; + font-family:verdana,helvetica,arial,sans-serif; +} + +div {width:100%;} + +table,th,td,input,textarea { + font-size:100%; +} + +table.reference, table.reference_fail { + background-color:#ffffff; + border:1px solid #c3c3c3; + border-collapse:collapse; + vertical-align:middle; +} + +table.reference th { + background-color:#e5eecc; + border:1px solid #c3c3c3; + padding:3px; +} + +table.reference_fail th { + background-color:#ffcccc; + border:1px solid #c3c3c3; + padding:3px; +} + + +table.reference td, table.reference_fail td { + border:1px solid #c3c3c3; + padding:3px; +} + +a.example {font-weight:bold} + +#a:link,a:visited {color:#900B09; background-color:transparent} +#a:hover,a:active {color:#FF0000; background-color:transparent} + +.linktr { + cursor: pointer; +} + +.linktext { + color:#0000FF; + text-decoration: underline; +} +""" + + # main if __name__ == '__main__': @@ -276,8 +334,6 @@ if __name__ == '__main__': <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> ''' - with open('style.css') as f: - style_css = f.read() html_output += style_css html_output +=''' </style> diff --git a/scripts/automation/regression/style.css b/scripts/automation/regression/style.css deleted file mode 100755 index b5996af1..00000000 --- a/scripts/automation/regression/style.css +++ /dev/null @@ -1,54 +0,0 @@ -html {overflow-y:scroll;} - -body { - font-size:12px; - color:#000000; - background-color:#ffffff; - margin:0px; - font-family:verdana,helvetica,arial,sans-serif; -} - -div {width:100%;} - -table,th,td,input,textarea { - font-size:100%; -} - -table.reference, table.reference_fail { - background-color:#ffffff; - border:1px solid #c3c3c3; - border-collapse:collapse; - vertical-align:middle; -} - -table.reference th { - background-color:#e5eecc; - border:1px solid #c3c3c3; - padding:3px; -} - -table.reference_fail th { - background-color:#ffcccc; - border:1px solid #c3c3c3; - padding:3px; -} - - -table.reference td, table.reference_fail td { - border:1px solid #c3c3c3; - padding:3px; -} - -a.example {font-weight:bold} - -#a:link,a:visited {color:#900B09; background-color:transparent} -#a:hover,a:active {color:#FF0000; background-color:transparent} - -.linktr { - cursor: pointer; -} - -.linktext { - color:#0000FF; - text-decoration: underline; -}
\ No newline at end of file |