mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Reduces memory used during testing
This commit is contained in:
parent
42ed9025ef
commit
31f2a24e78
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue