class GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc

Overview

Test for clip regions that should *not* impact a given hit test. This includes:

- clips from a view's sibling transforms

- clips from a view's children transforms

Topology

This test contains a parent view with children transforms, as well as a child view. The children

transforms and child view will set minimal clip regions, which should not affect the parent's

hits.

Inside the parent view, a transform's hits should not be affected by its siblings' clip regions.

Geometry

The parent, P0, is the entire 10x10 grid. P0 is the view, and P1 and P2 are child transforms in

it.

P0 has two children in its local topology, P1 and P2, depicted below. P1 is the top 10x5 of the

grid, and P2 is a subset of P1, comprising the top-right 5x2 region of both P0 and P1.

P0 has a child view C, which is the bottom 10x5.

------------------

|P1 |P2 |

| |--------|

| |

| |

------------------

|C |

| |

| |

| |

------------------

Expectations

Regardless of its children's clip regions, P0 should always receive a hit because P0's default

hit region is placed on the root transform, and thus not affected by clip boundaries on child

transforms.

C should always receive a hit when the hit is in the bottom half of the view, since P1 and P2 are

not C's ancestors and therefore their clip regions should not impact C whatsoever.

Public Methods

void GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test ()

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc

void GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test (const GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test & )

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc

void GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test (GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test && )

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc

GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test & operator= (const GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test & )

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc

GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test & operator= (GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test && )

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc

void ~GlobalTopologyDataTest_HitTest_NonRelevantClipRegions_Test ()

Defined at line 1091 of file ../../src/ui/scenic/lib/flatland/tests/global_topology_data_unittest.cc