From fe752fd9375e0d12f9a5ad751abf7b738c870e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 24 Oct 2023 14:34:57 +0300 Subject: [PATCH] Adjust failing item tree tests for #3460 --- test/tests/itemTreeTest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/tests/itemTreeTest.js b/test/tests/itemTreeTest.js index de27f09b6d..0e3179de23 100644 --- a/test/tests/itemTreeTest.js +++ b/test/tests/itemTreeTest.js @@ -438,7 +438,7 @@ describe("Zotero.ItemTree", function() { itemsView = zp.itemsView; var treebox = itemsView._treebox; - var numVisibleRows = treebox.getPageLength(); + var numVisibleRows = treebox.getLastVisibleRow() - treebox.getFirstVisibleRow(); // Get a numeric string left-padded with zeroes function getTitle(i, max) { @@ -489,7 +489,7 @@ describe("Zotero.ItemTree", function() { itemsView = zp.itemsView; var treebox = itemsView._treebox; - var numVisibleRows = treebox.getPageLength(); + var numVisibleRows = treebox.getLastVisibleRow() - treebox.getFirstVisibleRow(); // Get a numeric string left-padded with zeroes function getTitle(i, max) { @@ -545,7 +545,7 @@ describe("Zotero.ItemTree", function() { itemsView = zp.itemsView; var treebox = itemsView._treebox; - var numVisibleRows = treebox.getPageLength(); + var numVisibleRows = treebox.getLastVisibleRow() - treebox.getFirstVisibleRow(); // Get a numeric string left-padded with zeroes function getTitle(i, max) {