Skip to content

Commit

Permalink
#9 CotextMenuの他ライブラリ依存を削除。
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuzo.H committed May 29, 2017
1 parent 9c8cf2e commit 02a4e9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/contextmenu/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,10 @@ define(
expect(menu.listNode.children.length).toBe(1);
menu.onClickContext(clickEventMock);
fucusButton.focus();
expect(menu.itemsNode).not.toBe(document.activeElement);
expect(menu.itemsNode.tabIndex).toBe(-1);
window.requestAnimationFrame(function() {
expect(menu.itemsNode).not.toBe(document.activeElement);
expect(menu.itemsNode.getAttribute('tabindex')).toBe('-1');
});
});

it('onClickClose', function() {
Expand Down

0 comments on commit 02a4e9b

Please sign in to comment.