Skip to content

Commit

Permalink
Remove test which only tests browser default behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Nov 6, 2018
1 parent e0b6c12 commit 648d915
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/element/focus.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ describe('focus()', () => {
assert.equal(document.activeElement, element, 'Is activeElement after focus');
});

it('scrolls focused element into view by default', () => {
const element = fixture.append('<button style="display:block;margin-top:9999px"></button>');

assert.isFalse(inViewport(element), 'Not in viewport before focus');

focus(element);

assert(inViewport(element), 'In viewport after focus');
});

it('works for non-elements', () => {
focus(undefined);
focus('string');
Expand Down

0 comments on commit 648d915

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy