CEify itemPane
This commit is contained in:
parent
827bcd704d
commit
b2ad17d604
45 changed files with 2081 additions and 1637 deletions
|
@ -403,9 +403,11 @@ describe("Item pane", function () {
|
|||
|
||||
let button = doc.getElementById('zotero-feed-item-toggleRead-button');
|
||||
|
||||
assert.equal(button.textContent, Zotero.getString('pane.item.markAsUnread'));
|
||||
assert.equal(button.label, Zotero.getString('pane.item.markAsUnread'));
|
||||
yield item.toggleRead(false);
|
||||
assert.equal(button.textContent, Zotero.getString('pane.item.markAsRead'));
|
||||
// Button is re-created
|
||||
button = doc.getElementById('zotero-feed-item-toggleRead-button');
|
||||
assert.equal(button.label, Zotero.getString('pane.item.markAsRead'));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue