CEify itemPane

This commit is contained in:
windingwind 2024-01-30 18:43:16 +08:00 committed by Dan Stillman
parent 827bcd704d
commit b2ad17d604
45 changed files with 2081 additions and 1637 deletions

View file

@ -856,7 +856,7 @@ describe("Zotero.ItemTree", function() {
yield itemsView.selectItem(attachment.id);
yield Zotero.Promise.delay();
var box = win.document.getElementById('zotero-item-pane-top-buttons-my-publications');
var box = win.document.getElementById('zotero-item-pane-my-publications-button');
assert.isFalse(box.hidden);
});
@ -872,8 +872,9 @@ describe("Zotero.ItemTree", function() {
yield itemsView.selectItem(attachment.id);
var box = win.document.getElementById('zotero-item-pane-top-buttons-my-publications');
assert.isTrue(box.hidden);
var box = win.document.getElementById('zotero-item-pane-my-publications-button');
// box is not created if it shouldn't show
assert.isNull(box);
});
});
})