summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-05-28 07:15:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-05-28 07:15:03 -0400
commit4842543494691d3993042331ae784be25bca7e47 (patch)
treed86cf0637d8a552ea0615e48f0d14e30b70fde20
parent0ec270a86635d70a8aebc227231feecac6e4c7c5 (diff)
downloadpython-coveragepy-4842543494691d3993042331ae784be25bca7e47.tar.gz
Clean up
-rw-r--r--CHANGES.rst2
-rw-r--r--CONTRIBUTORS.txt1
-rw-r--r--coverage/htmlfiles/coverage_html.js4
3 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 99abfd4..d75322f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -29,6 +29,8 @@ Unreleased (might become 5.0)
- Running coverage many times for small runs in a single process should be
faster, closing `issue 625`_. Thanks, David MacIver.
+- Large HTML report pages load faster. Thanks, pankajp.
+
.. _issue 625: https://bitbucket.org/ned/coveragepy/issues/625/lstat-dominates-in-the-case-of-small
.. _issue 650: https://bitbucket.org/ned/coveragepy/issues/650/allow-setting-configuration-file-location
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index d3112a1..de4ea7d 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -81,6 +81,7 @@ Nathan Land
Noel O'Boyle
Olivier Grisel
Ori Avtalion
+pankajp
Pablo Carballo
Patrick Mezard
Peter Baughman
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js
index b7fbd9c..c1a4119 100644
--- a/coverage/htmlfiles/coverage_html.js
+++ b/coverage/htmlfiles/coverage_html.js
@@ -559,7 +559,9 @@ coverage.resize_scroll_markers = function () {
offsets = {};
// Calculate line offsets outside loop to prevent relayouts
- c.missed_lines.each(function(){offsets[this.id] = $(this).offset().top});
+ c.missed_lines.each(function() {
+ offsets[this.id] = $(this).offset().top;
+ });
c.missed_lines.each(function () {
var id_name = $(this).attr('id'),
line_top = Math.round(offsets[id_name] * marker_scale),