class FlatlandPixelTestBase_TranslateInheritsFromParent_Class

Defined at line 1070 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc

This test verifies the behavior of view bound clipping when multiple views exist under a node

that itself has a translation applied to it. We initially add a child view which is subsequently

replaced with two new views, all which have a rectangle in each. The parent view is under a node

that is translated (display_width/2, 0). We expect the two child views added with

ReplaceChildren to apply the parent's translation to their translation. On the other hand, the

second view, initially added as a child of the parent view, but removed with ReplaceChildren,

should be removed from the parent's graph. This means that what you see on the screen should

look like the following:

xxxxxxxxxxbbbbbbbbbb

xxxxxxxxxxbbbbbbbbbb

xxxxxxxxxxbbbbbbbbbb

xxxxxxxxxxbbbbbbbbbb

xxxxxxxxxxrrrrrrrrrr

xxxxxxxxxxrrrrrrrrrr

xxxxxxxxxxgggggggggg

xxxxxxxxxxgggggggggg

Where x refers to empty display pixels.

b refers to blue pixels covered by the parent view's bounds.

r refers to red pixels covered by the first child of the parent view.

g refers to green pixels covered by the second child of the parent view.

Public Methods

void FlatlandPixelTestBase_TranslateInheritsFromParent_Class ()

Defined at line 1070 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc

void ~FlatlandPixelTestBase_TranslateInheritsFromParent_Class ()

Defined at line 1070 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc