Chromium Code Reviews| Index: Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
| diff --git a/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp b/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
| index 840d39b8a48af6d9fe4066344a053448c13c7c54..ad57ef9a6a15fff4354aa6cee323652a6198460b 100644 |
| --- a/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
| +++ b/Source/web/tests/ScrollingCoordinatorChromiumTest.cpp |
| @@ -143,9 +143,10 @@ TEST_F(ScrollingCoordinatorChromiumTest, fastScrollingByDefault) |
| ASSERT_TRUE(page->scrollingCoordinator()); |
| ASSERT_TRUE(page->scrollingCoordinator()->coordinatesScrollingForFrameView(frameView)); |
| - // Fast scrolling should be enabled by default. |
| + // Fast scrolling should be enabled by default, BUT if the main frame is |
| + // not scrollable, then the rootScrollLayer shouldn't be scrollable either. |
|
jamesr
2014/01/06 23:46:01
can you add a case for what this was originally te
|
| WebLayer* rootScrollLayer = getRootScrollLayer(); |
| - ASSERT_TRUE(rootScrollLayer->scrollable()); |
| + ASSERT_FALSE(rootScrollLayer->scrollable()); |
| ASSERT_FALSE(rootScrollLayer->shouldScrollOnMainThread()); |
| ASSERT_FALSE(rootScrollLayer->haveWheelEventHandlers()); |
| } |