Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(selection): allow rowSelection to be navigable if using cellNav; …
…allow rowSelection via the space bar(new Test)
  • Loading branch information
mboriani committed Mar 5, 2015
1 parent 3d5d603 commit 95ce7b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/features/selection/test/uiGridSelectionDirective.spec.js
Expand Up @@ -52,4 +52,13 @@ describe('ui.grid.selection uiGridSelectionDirective', function() {
expect(currentRow.enableSelection).toEqual(currentRow.entity.id % 2 === 0);
}
});

it('should add cellFocus to the row header columnDef"', function() {
for (var i = 0; i < gridCtrl.grid.columns.length; i++) {
var currentCol = gridCtrl.grid.columns[i];
if (currentCol.name === "selectionRowHeaderCol"){
expect(currentCol.colDef.allowCellFocus).toBe(true);
}
}
});
});

0 comments on commit 95ce7b1

Please sign in to comment.