[Pkg-javascript-commits] [pdf.js] 34/210: Reduces memory used during testing

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:20:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit 31f2a24e780ecf68b931d8ef85e185e544d7db75
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Mon Apr 28 11:15:46 2014 -0500

    Reduces memory used during testing
---
 test/test.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/test.js b/test/test.js
index 1c3160b..1f8ad7b 100644
--- a/test/test.js
+++ b/test/test.js
@@ -419,6 +419,12 @@ function checkRefTestResults(browser, id, results) {
     default:
       throw new Error('Unknown test type');
   }
+  // clear memory
+  results.forEach(function (roundResults, round) {
+    roundResults.forEach(function (pageResult, page) {
+      pageResult.snapshot = null;
+    });
+  });
 }
 
 function refTestPostHandler(req, res) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list