Commit 5ffbb5de authored by Mike Greiling's avatar Mike Greiling

bypass buggy "focus" event in Chrome

parent 5f2d1712
......@@ -50,13 +50,8 @@ require('~/shortcuts_issuable');
return expect(triggered).toBe(true);
});
return it('triggers `focus`', function() {
var focused;
focused = false;
$(this.selector).on('focus', function() {
return focused = true;
});
this.shortcut.replyWithSelectedText();
return expect(focused).toBe(true);
expect(document.activeElement).toBe(document.querySelector(this.selector));
});
});
describe('with a one-line selection', function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment