Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 701 Bytes

File metadata and controls

27 lines (23 loc) · 701 Bytes
layout page-api
title QUnit.config.scrolltop
excerpt Scroll to the top of the page after the test run.
groups
config
redirect_from
/config/scrolltop/
version_added 1.14.0

In browser environments, scroll to the top of the page after the tests are done.

type `boolean`
default `true`

By default, QUnit scrolls the browser to the top of the page when tests are done. This reverses any programmatic scrolling performed by the application or its tests.

Set this option to false to disable this behaviour, and thus leave the page in its final scroll position.