Skip to content

Commit

Permalink
fix test failures on safari 9 and chrome 41 w/focus event
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Apr 21, 2017
1 parent 5be7ec9 commit 0b00f2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/shady-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@

test('scoped focus and blur events do not retarget', function() {
var el = fixture('focus');
var e = new Event('focus');
if (e.isTrused !== false) {
// skip browser if we cannot distinguish
// native focus events from user created ones
this.skip();
}
el.fireScoped();
assert.equal(el.events.length, 1);
assert.equal(el.events[0], el.$.child);
Expand Down

0 comments on commit 0b00f2d

Please sign in to comment.