Adjust failing item tree tests for #3460

This commit is contained in:
Adomas Venčkauskas 2023-10-24 14:34:57 +03:00
parent 011dabd372
commit fe752fd937

View file

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