Update toolbar icons on group editability change
And trigger 'group' 'modify' notifier event for inherited Zotero.Library properties
This commit is contained in:
parent
a61c99843b
commit
234127e65a
4 changed files with 82 additions and 36 deletions
|
@ -14,4 +14,19 @@ describe("Zotero.Groups", function () {
|
|||
}
|
||||
})
|
||||
})
|
||||
|
||||
describe("#save()", function () {
|
||||
it("should trigger notifier event for inherited properties", function* () {
|
||||
var group = yield createGroup({
|
||||
editable: false
|
||||
});
|
||||
group.editable = true;
|
||||
|
||||
var promise = waitForNotifierEvent('modify', 'group');
|
||||
yield group.saveTx();
|
||||
var data = yield promise;
|
||||
assert.lengthOf(data.ids, 1);
|
||||
assert.sameMembers(data.ids, [group.id]);
|
||||
});
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue