| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 { | 140 { |
| 141 FakeScrollableArea scrollableArea; | 141 FakeScrollableArea scrollableArea; |
| 142 m_graphicsLayer->setScrollableArea(&scrollableArea); | 142 m_graphicsLayer->setScrollableArea(&scrollableArea); |
| 143 | 143 |
| 144 WebPoint scrollPosition(7, 9); | 144 WebPoint scrollPosition(7, 9); |
| 145 m_platformLayer->setScrollPosition(scrollPosition); | 145 m_platformLayer->setScrollPosition(scrollPosition); |
| 146 | 146 |
| 147 EXPECT_EQ(scrollPosition, WebPoint(scrollableArea.scrollPosition())); | 147 EXPECT_EQ(scrollPosition, WebPoint(scrollableArea.scrollPosition())); |
| 148 } | 148 } |
| 149 | 149 |
| 150 TEST_F(GraphicsLayerChromiumTest, setContentsToSolidColor) |
| 151 { |
| 152 m_graphicsLayer->setContentsToSolidColor(Color::transparent); |
| 153 EXPECT_FALSE(m_graphicsLayer->contentsLayer()); |
| 154 |
| 155 m_graphicsLayer->setContentsToSolidColor(Color::white); |
| 156 EXPECT_TRUE(m_graphicsLayer->contentsLayer()); |
| 157 |
| 158 m_graphicsLayer->setContentsToSolidColor(Color()); |
| 159 EXPECT_FALSE(m_graphicsLayer->contentsLayer()); |
| 160 } |
| 161 |
| 150 } // namespace | 162 } // namespace |
| OLD | NEW |