TEST_F(APZEventRegionsTester, Bug1119497) { CreateBug1119497LayerTree(); HitTestResult result; RefPtr<AsyncPanZoomController> hit = manager->GetTargetAPZC(ScreenPoint(50, 50), &result); // We should hit layers[2], so |result| will be HitLayer but there's no // actual APZC on layers[2], so it will be the APZC of the root layer. EXPECT_EQ(ApzcOf(layers[0]), hit.get()); EXPECT_EQ(HitTestResult::HitLayer, result); }
TEST_F(APZEventRegionsTester, Bug1119497) { CreateBug1119497LayerTree(); gfx::CompositorHitTestInfo result; RefPtr<AsyncPanZoomController> hit = manager->GetTargetAPZC(ScreenPoint(50, 50), &result, nullptr); // We should hit layers[2], so |result| will be eVisibleToHitTest but there's // no actual APZC on layers[2], so it will be the APZC of the root layer. EXPECT_EQ(ApzcOf(layers[0]), hit.get()); EXPECT_EQ(result, CompositorHitTestFlags::eVisibleToHitTest); }