From c6b0876417904a0850ea763a16f81c6e00e3a562 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 7 Nov 2010 09:05:21 -0500 Subject: Upgrade jquery to 1.4.3 --- coverage/html.py | 13 ++- coverage/htmlfiles/index.html | 2 +- coverage/htmlfiles/jquery-1.3.2.min.js | 19 ---- coverage/htmlfiles/jquery-1.4.3.min.js | 166 +++++++++++++++++++++++++++++++++ coverage/htmlfiles/pyfile.html | 2 +- 5 files changed, 177 insertions(+), 25 deletions(-) delete mode 100644 coverage/htmlfiles/jquery-1.3.2.min.js create mode 100644 coverage/htmlfiles/jquery-1.4.3.min.js diff --git a/coverage/html.py b/coverage/html.py index dac4ff96..29842cfb 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -24,6 +24,14 @@ def data(fname): class HtmlReporter(Reporter): """HTML reporting.""" + # These files will be copied from the htmlfiles dir to the output dir. + STATIC_FILES = [ + "style.css", + "jquery-1.4.3.min.js", + "jquery.tablesorter.min.js", + "coverage_html.js", + ] + def __init__(self, coverage, ignore_errors=False): super(HtmlReporter, self).__init__(coverage, ignore_errors) self.directory = None @@ -51,10 +59,7 @@ class HtmlReporter(Reporter): self.index_file() # Create the once-per-directory files. - for static in [ - "style.css", "coverage_html.js", - "jquery-1.3.2.min.js", "jquery.tablesorter.min.js" - ]: + for static in self.STATIC_FILES: shutil.copyfile( data_filename("htmlfiles/" + static), os.path.join(self.directory, static) diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index c7ab6f59..bd8c097d 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -4,7 +4,7 @@ Coverage report - + +