[Edit] Add EditToolbarRepresenter spec

Add tests for representer which mediates between view's
selection and toolbar contents, WTD-878.
This commit is contained in:
Victor Woeltjen
2015-02-17 15:47:18 -08:00
parent 48754c78bf
commit 3916968544
3 changed files with 96 additions and 2 deletions

View File

@ -37,7 +37,9 @@ define(
// Update selection models to match changed toolbar state
function updateState(state) {
state.forEach(toolbar.updateState);
state.forEach(function (value, index) {
toolbar.updateState(index, value);
});
}
// Represent a domain object using this definition