1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #4699 from yurydelendik/testmem

Reduces memory used during testing
This commit is contained in:
Yury Delendik 2014-04-28 11:42:31 -05:00
commit 0d30bb040e

View file

@ -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) {