Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$( window ).scrollTop( 0 ); at the end of the tests. #304

Closed
FagnerMartinsBrack opened this issue Aug 13, 2012 · 1 comment
Closed

$( window ).scrollTop( 0 ); at the end of the tests. #304

FagnerMartinsBrack opened this issue Aug 13, 2012 · 1 comment

Comments

@FagnerMartinsBrack
Copy link

I did a fast look and didn't found anything regarding this. When I am testing my projects qunit does not scroll to the top but remains with the scroll following the last test.
My suggestion is to scroll the window to the top after all tests have been completed and perhaps scroll to the next failed if there is any.

@jzaefferer
Copy link
Member

Needs a jQuery-free implementation. Also need to check if there's cases where the browser restores the scroll position on page load, which we shouldn't override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants