fix test failures on safari 9 and chrome 41 w/focus event

This commit is contained in:
Daniel Freedman
2017-04-21 10:52:26 -07:00
parent 5be7ec99c8
commit 0b00f2d9ee

View File

@@ -221,6 +221,12 @@ suite('ShadyDOM event patching', function() {
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);