Skip to content

Commit 0b00f2d

Browse files
committed
fix test failures on safari 9 and chrome 41 w/focus event
1 parent 5be7ec9 commit 0b00f2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/shady-events.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@
221221

222222
test('scoped focus and blur events do not retarget', function() {
223223
var el = fixture('focus');
224+
var e = new Event('focus');
225+
if (e.isTrused !== false) {
226+
// skip browser if we cannot distinguish
227+
// native focus events from user created ones
228+
this.skip();
229+
}
224230
el.fireScoped();
225231
assert.equal(el.events.length, 1);
226232
assert.equal(el.events[0], el.$.child);

0 commit comments

Comments
 (0)