Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Scroll the window back to top after tests finished running. Fixes #304
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 17 Aug 2012 12:21:03 +0000 (14:21 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 17 Aug 2012 12:21:03 +0000 (14:21 +0200)
qunit/qunit.js

index b12f1bb..5332e73 100644 (file)
@@ -1141,6 +1141,11 @@ function done() {
                }
        }
 
+       // scroll back to top to show results
+       if ( window.scrollTo ) {
+               window.scrollTo(0, 0);
+       }
+
        runLoggingCallbacks( "done", QUnit, {
                failed: config.stats.bad,
                passed: passed,

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf