Skip to content

Commit

Permalink
test(style/focus-within): increasing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Feb 21, 2016
1 parent 1d60f62 commit 675b928
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/style.focus-within.test.js
Expand Up @@ -53,6 +53,7 @@ define([
_expect('after disengage', []);
},
'follow focus': function() {
var deferred = this.async(10000);
_expect('before engage', []);

if (document.activeElement === document.documentElement) {
Expand All @@ -72,6 +73,12 @@ define([
fixture.input.after.focus();
expect(document.activeElement).to.equal(fixture.input.after);
_expect('after sequence', 'html body #intern-dom-fixture #after-wrapper #after-input'.split(' '));

document.activeElement.blur();
setTimeout(deferred.callback(function() {
expect(document.activeElement).to.equal(document.body);
_expect('blurred', 'html body'.split(' '));
}), 200);
},
'follow focus into Shadow DOM': function() {
if (!supports.cssShadowPiercingDeepCombinator) {
Expand Down

0 comments on commit 675b928

Please sign in to comment.