mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Adjust the "handles resize
correctly, with idsToKeep
provided" unit-test (PR 14238 follow-up)
This small change will help validate an important part of the upcoming re-factoring, regarding the *correct* iteration of the `Set` in the `PDFPageViewBuffer.resize` method in particular.
This commit is contained in:
parent
38efd13a54
commit
c62bcb55ac
1 changed files with 2 additions and 2 deletions
|
@ -136,12 +136,12 @@ describe("BaseViewer", function () {
|
|||
|
||||
// Ensure that decreasing the size will evict the correct views,
|
||||
// while re-ordering the remaining ones correctly.
|
||||
buffer.resize(3, new Set([1, 2, 3]));
|
||||
buffer.resize(3, new Set([1, 2, 5]));
|
||||
|
||||
expect(buffer._buffer).toEqual([
|
||||
viewsMap.get(1),
|
||||
viewsMap.get(2),
|
||||
viewsMap.get(3),
|
||||
viewsMap.get(5),
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue