summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-18 04:07:44 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-18 04:07:44 +0000
commit21636e52decaaa993d847e504dedffd3eddcd972 (patch)
treeed316c5ae09b4fd6f3084e61ee854c1650157019 /ui/gfx
parentb228f6bb9457950a9ed40cf4e801692b968ebe92 (diff)
downloadchromium_src-21636e52decaaa993d847e504dedffd3eddcd972.zip
chromium_src-21636e52decaaa993d847e504dedffd3eddcd972.tar.gz
chromium_src-21636e52decaaa993d847e504dedffd3eddcd972.tar.bz2
Disable layer hole unit tests when using the WebKit compositor.
BUG=None TEST=compositor_unittests Review URL: http://codereview.chromium.org/8585034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r--ui/gfx/compositor/layer_unittest.cc29
1 files changed, 20 insertions, 9 deletions
diff --git a/ui/gfx/compositor/layer_unittest.cc b/ui/gfx/compositor/layer_unittest.cc
index aa16ceb..3595c86 100644
--- a/ui/gfx/compositor/layer_unittest.cc
+++ b/ui/gfx/compositor/layer_unittest.cc
@@ -604,7 +604,8 @@ TEST_F(LayerWithNullDelegateTest,
}
// Verifies that when there are many potential holes, the largest one is picked.
-TEST_F(LayerWithNullDelegateTest, LargestHole) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(LargestHole)) {
scoped_ptr<Layer> parent(CreateTextureRootLayer(gfx::Rect(0, 0, 400, 400)));
scoped_ptr<Layer> child1(CreateTextureLayer(gfx::Rect(50, 50, 100, 100)));
@@ -619,7 +620,8 @@ TEST_F(LayerWithNullDelegateTest, LargestHole) {
}
// Verifies that the largest hole in the draw order is picked
-TEST_F(LayerWithNullDelegateTest, HoleGeneratedFromLeaf) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(HoleGeneratedFromLeaf)) {
// Layer tree looks like:
// node 1
// |_ node 11
@@ -649,7 +651,8 @@ TEST_F(LayerWithNullDelegateTest, HoleGeneratedFromLeaf) {
}
// Verifies that a hole can only punched into a layer with opacity = 1.0f.
-TEST_F(LayerWithNullDelegateTest, NoHoleWhenPartialOpacity) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(NoHoleWhenPartialOpacity)) {
// Layer tree looks like:
// node 1
// |_ node 11
@@ -675,7 +678,8 @@ TEST_F(LayerWithNullDelegateTest, NoHoleWhenPartialOpacity) {
}
// Verifies that a non visible layer or any of its children is not a hole.
-TEST_F(LayerWithNullDelegateTest, NonVisibleLayerCannotBeHole) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(NonVisibleLayerCannotBeHole)) {
// Layer tree looks like:
// node 1
// |_ node 11
@@ -702,7 +706,9 @@ TEST_F(LayerWithNullDelegateTest, NonVisibleLayerCannotBeHole) {
// Verifies that a layer which doesn't fill its bounds opaquely cannot punch a
// hole. However its children should still be able to punch a hole.
-TEST_F(LayerWithNullDelegateTest, LayerNotFillingBoundsOpaquelyCannotBeHole) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(
+ LayerNotFillingBoundsOpaquelyCannotBeHole)) {
// Layer tree looks like:
// node 1
// |_ node 11
@@ -728,7 +734,8 @@ TEST_F(LayerWithNullDelegateTest, LayerNotFillingBoundsOpaquelyCannotBeHole) {
}
// Verifies that the hole is with respect to the local bounds of its parent.
-TEST_F(LayerWithNullDelegateTest, HoleLocalBounds) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(HoleLocalBounds)) {
scoped_ptr<Layer> parent(CreateTextureRootLayer(
gfx::Rect(100, 100, 150, 150)));
@@ -742,7 +749,8 @@ TEST_F(LayerWithNullDelegateTest, HoleLocalBounds) {
// Verifies that there is no hole present when one of the child layers has a
// transform.
-TEST_F(LayerWithNullDelegateTest, NoHoleWithTransform) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(NoHoleWithTransform)) {
scoped_ptr<Layer> parent(CreateTextureRootLayer(gfx::Rect(0, 0, 400, 400)));
scoped_ptr<Layer> child(CreateTextureLayer(gfx::Rect(50, 50, 100, 100)));
parent->Add(child.get());
@@ -764,7 +772,8 @@ TEST_F(LayerWithNullDelegateTest, NoHoleWithTransform) {
// Verifies that if the child layer is rotated by a multiple of ninety degrees
// we punch a hole
-TEST_F(LayerWithNullDelegateTest, HoleWithNinetyDegreeTransforms) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(HoleWithNinetyDegreeTransforms)) {
scoped_ptr<Layer> parent(CreateTextureRootLayer(gfx::Rect(0, 0, 400, 400)));
scoped_ptr<Layer> child(CreateTextureLayer(gfx::Rect(50, 50, 50, 50)));
parent->Add(child.get());
@@ -795,7 +804,9 @@ TEST_F(LayerWithNullDelegateTest, HoleWithNinetyDegreeTransforms) {
// Verifies that a layer which doesn't have a texture cannot punch a
// hole. However its children should still be able to punch a hole.
-TEST_F(LayerWithNullDelegateTest, HoleWithRelativeNinetyDegreeTransforms) {
+TEST_F(LayerWithNullDelegateTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(
+ HoleWithRelativeNinetyDegreeTransforms)) {
// Layer tree looks like:
// node 1
// |_ node 11