| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 } | 247 } |
| 248 | 248 |
| 249 TEST_F(ScrollingCoordinatorChromiumTest, nonFastScrollableRegion) | 249 TEST_F(ScrollingCoordinatorChromiumTest, nonFastScrollableRegion) |
| 250 { | 250 { |
| 251 registerMockedHttpURLLoad("non-fast-scrollable.html"); | 251 registerMockedHttpURLLoad("non-fast-scrollable.html"); |
| 252 navigateTo(m_baseURL + "non-fast-scrollable.html"); | 252 navigateTo(m_baseURL + "non-fast-scrollable.html"); |
| 253 | 253 |
| 254 WebLayer* rootScrollLayer = getRootScrollLayer(); | 254 WebLayer* rootScrollLayer = getRootScrollLayer(); |
| 255 WebVector<WebRect> nonFastScrollableRegion = rootScrollLayer->nonFastScrolla
bleRegion(); | 255 WebVector<WebRect> nonFastScrollableRegion = rootScrollLayer->nonFastScrolla
bleRegion(); |
| 256 | 256 |
| 257 ASSERT_EQ(1u, nonFastScrollableRegion.size()); | 257 ASSERT_EQ(0u, nonFastScrollableRegion.size()); |
| 258 ASSERT_EQ(WebRect(8, 8, 10, 10), nonFastScrollableRegion[0]); | |
| 259 } | 258 } |
| 260 | 259 |
| 261 TEST_F(ScrollingCoordinatorChromiumTest, wheelEventHandler) | 260 TEST_F(ScrollingCoordinatorChromiumTest, wheelEventHandler) |
| 262 { | 261 { |
| 263 registerMockedHttpURLLoad("wheel-event-handler.html"); | 262 registerMockedHttpURLLoad("wheel-event-handler.html"); |
| 264 navigateTo(m_baseURL + "wheel-event-handler.html"); | 263 navigateTo(m_baseURL + "wheel-event-handler.html"); |
| 265 | 264 |
| 266 WebLayer* rootScrollLayer = getRootScrollLayer(); | 265 WebLayer* rootScrollLayer = getRootScrollLayer(); |
| 267 ASSERT_TRUE(rootScrollLayer->haveWheelEventHandlers()); | 266 ASSERT_TRUE(rootScrollLayer->haveWheelEventHandlers()); |
| 268 } | 267 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 396 |
| 398 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) | 397 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) |
| 399 { | 398 { |
| 400 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); | 399 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); |
| 401 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); | 400 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); |
| 402 // This test document setup an iframe with scrollbars, then switch to | 401 // This test document setup an iframe with scrollbars, then switch to |
| 403 // an empty document by javascript. | 402 // an empty document by javascript. |
| 404 } | 403 } |
| 405 | 404 |
| 406 } // namespace | 405 } // namespace |
| OLD | NEW |