mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
fix test failures on safari 9 and chrome 41 w/focus event
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user