test_group_mainthread.html (2102B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Tests that perform main-thread scrolling</title> 6 <script src="/tests/SimpleTest/SimpleTest.js"></script> 7 <script type="application/javascript" src="apz_test_utils.js"></script> 8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 9 <script type="application/javascript"> 10 11 var subtests = [ 12 {"file": "helper_scrollby_bug1531796.html"}, 13 {"file": "helper_scrollby_zoomed_bug1965670.html"}, 14 // This test checks that scroll anchoring isn't invoked just after an async 15 // scroll operation (scrolIntoView) was triggered, in other words, the async 16 // operation happened on the main-thread but it hasn't reached to APZ yet, so 17 // we don't need to set layout.css.scroll-behavior.spring-constant explicitly 18 // since the async scroll animation doesn't need to keep running there. 19 {"file": "helper_scroll_anchoring_smooth_scroll.html"}, 20 {"file": "helper_scroll_anchoring_smooth_scroll_with_set_timeout.html", prefs: [ 21 // Unlike helper_scroll_anchoring_smooth_scroll.html, this test checks that 22 // scroll anchoring __is__ invoked when an async scroll animation triggered 23 // by scrollIntoView() is running so the animation needs to keep running for 24 // a while. 25 ["layout.css.scroll-snap.spring-constant", 10], 26 // This ensures scrollIntoView() uses scroll-snap physics settings. 27 ["layout.css.scroll-behavior.same-physics-as-user-input", false] 28 ]}, 29 {"file": "helper_visualscroll_clamp_restore.html", prefs: [ 30 ["apz.test.logging_enabled", true], 31 ]}, 32 {"file": "helper_smoothscroll_spam.html"}, 33 {"file": "helper_smoothscroll_spam_interleaved.html"}, 34 {"file": "helper_mainthread_scroll_bug1662379.html", prefs: [ 35 ["apz.test.logging_enabled", true], 36 ]}, 37 {"file": "helper_bug1519339_hidden_smoothscroll.html"}, 38 ]; 39 40 if (isApzEnabled()) { 41 SimpleTest.waitForExplicitFinish(); 42 window.onload = function() { 43 runSubtestsSeriallyInFreshWindows(subtests) 44 .then(SimpleTest.finish, SimpleTest.finishWithFailure); 45 }; 46 } 47 48 </script> 49 </head> 50 <body> 51 </body> 52 </html>