test_group_hittest-1.html (2466B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Various hit-testing tests that spawn in new windows - Part 1</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 prefs = [ 12 // Turn off displayport expiry so that we don't miss failures where the 13 // displayport is set and then expires before we get around to doing the 14 // hit-test inside the activated scrollframe. 15 ["apz.displayport_expiry_ms", 0], 16 // Always layerize the scrollbar track, so as to get consistent results 17 // across platforms. Eventually we should probably get rid of this and make 18 // the tests more robust in terms of testing all the different cross-platform 19 // variations. 20 ["layout.scrollbars.always-layerize-track", true], 21 // We need this pref to allow the synthetic mouse events to propagate to APZ, 22 // and to allow the MozMouseHittest event in particular to be dispatched to 23 // APZ as a MouseInput so the hit result is recorded. 24 ["test.events.async.enabled", true], 25 // Turns on APZTestData logging which we use to obtain the hit test results. 26 ["apz.test.logging_enabled", true], 27 ]; 28 29 var overscroll_prefs = [...prefs, 30 ["apz.overscroll.enabled", true], 31 ["apz.overscroll.test_async_scroll_offset.enabled", true], 32 ]; 33 34 var subtests = [ 35 {"file": "helper_hittest_basic.html", "prefs": prefs}, 36 {"file": "helper_hittest_fixed_in_scrolled_transform.html", "prefs": prefs}, 37 {"file": "helper_hittest_float_bug1434846.html", "prefs": prefs}, 38 {"file": "helper_hittest_float_bug1443518.html", "prefs": prefs}, 39 {"file": "helper_hittest_checkerboard.html", "prefs": prefs}, 40 {"file": "helper_hittest_backface_hidden.html", "prefs": prefs}, 41 {"file": "helper_hittest_touchaction.html", "prefs": prefs}, 42 {"file": "helper_hittest_nested_transforms_bug1459696.html", "prefs": prefs}, 43 {"file": "helper_hittest_sticky_bug1478304.html", "prefs": prefs}, 44 {"file": "helper_hittest_clipped_fixed_modal.html", "prefs": prefs}, 45 ]; 46 47 if (isApzEnabled()) { 48 SimpleTest.waitForExplicitFinish(); 49 window.onload = function() { 50 runSubtestsSeriallyInFreshWindows(subtests) 51 .then(SimpleTest.finish, SimpleTest.finishWithFailure); 52 }; 53 } 54 55 </script> 56 </head> 57 <body> 58 </body> 59 </html>