summaryrefslogtreecommitdiffstats
path: root/ui/views/view_unittest.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 05:09:45 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-02 05:09:45 +0000
commit7b5080a648d3a18abe706ee05d5e1af9b297c49a (patch)
tree22bc3c9e41124c36e9214a46b3f55aec8627c607 /ui/views/view_unittest.cc
parentaf47fed2b9555ebe91143d5c97278431a40670af (diff)
downloadchromium_src-7b5080a648d3a18abe706ee05d5e1af9b297c49a.zip
chromium_src-7b5080a648d3a18abe706ee05d5e1af9b297c49a.tar.gz
chromium_src-7b5080a648d3a18abe706ee05d5e1af9b297c49a.tar.bz2
aura: Use WebKit compositor by default
BUG=99524 TEST=compositor_unittests, views_unittests, aura_unittests... Review URL: http://codereview.chromium.org/8565019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/view_unittest.cc')
-rw-r--r--ui/views/view_unittest.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/ui/views/view_unittest.cc b/ui/views/view_unittest.cc
index 224b5c9c..3952db1 100644
--- a/ui/views/view_unittest.cc
+++ b/ui/views/view_unittest.cc
@@ -2818,9 +2818,18 @@ TEST_F(ViewLayerTest, ToggleVisibilityWithLayer) {
EXPECT_TRUE(v1->layer()->IsDrawn());
}
+// We don't set the hole in the webkit compositor, so disable tests that rely on
+// it.
+#if defined(USE_WEBKIT_COMPOSITOR)
+#define NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(X) DISABLED_ ## X
+#else
+#define NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(X) X
+#endif
+
// Test that a hole in a layer is correctly created regardless of whether
// the opacity attribute is set before or after the layer is created.
-TEST_F(ViewLayerTest, ToggleOpacityWithLayer) {
+TEST_F(ViewLayerTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(ToggleOpacityWithLayer)) {
View* content_view = new View;
widget()->SetContentsView(content_view);
@@ -2850,7 +2859,8 @@ TEST_F(ViewLayerTest, ToggleOpacityWithLayer) {
// Test that a hole in a layer always corresponds to the bounds of opaque
// layers.
-TEST_F(ViewLayerTest, MultipleOpaqueLayers) {
+TEST_F(ViewLayerTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(MultipleOpaqueLayers)) {
View* content_view = new View;
widget()->SetContentsView(content_view);
@@ -2891,7 +2901,8 @@ TEST_F(ViewLayerTest, MultipleOpaqueLayers) {
}
// Makes sure that opacity of layer persists after toggling visibilty.
-TEST_F(ViewLayerTest, ToggleVisibilityWithOpaqueLayer) {
+TEST_F(ViewLayerTest,
+ NOT_APPLICABLE_TO_WEBKIT_COMPOSITOR(ToggleVisibilityWithOpaqueLayer)) {
View* content_view = new View;
widget()->SetContentsView(content_view);