| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 251 } |
| 252 | 252 |
| 253 TEST_F(ScrollingCoordinatorChromiumTest, updateEventHandlersDuringTeardown) | 253 TEST_F(ScrollingCoordinatorChromiumTest, updateEventHandlersDuringTeardown) |
| 254 { | 254 { |
| 255 registerMockedHttpURLLoad("scroll-event-handler-window.html"); | 255 registerMockedHttpURLLoad("scroll-event-handler-window.html"); |
| 256 navigateTo(m_baseURL + "scroll-event-handler-window.html"); | 256 navigateTo(m_baseURL + "scroll-event-handler-window.html"); |
| 257 forceFullCompositingUpdate(); | 257 forceFullCompositingUpdate(); |
| 258 | 258 |
| 259 // Simulate detaching the document from its DOM window. This should not | 259 // Simulate detaching the document from its DOM window. This should not |
| 260 // cause a crash when the WebViewImpl is closed by the test runner. | 260 // cause a crash when the WebViewImpl is closed by the test runner. |
| 261 frame()->document()->clearDOMWindow(); | 261 frame()->document()->prepareForDestruction(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 TEST_F(ScrollingCoordinatorChromiumTest, clippedBodyTest) | 264 TEST_F(ScrollingCoordinatorChromiumTest, clippedBodyTest) |
| 265 { | 265 { |
| 266 registerMockedHttpURLLoad("clipped-body.html"); | 266 registerMockedHttpURLLoad("clipped-body.html"); |
| 267 navigateTo(m_baseURL + "clipped-body.html"); | 267 navigateTo(m_baseURL + "clipped-body.html"); |
| 268 forceFullCompositingUpdate(); | 268 forceFullCompositingUpdate(); |
| 269 | 269 |
| 270 WebLayer* rootScrollLayer = getRootScrollLayer(); | 270 WebLayer* rootScrollLayer = getRootScrollLayer(); |
| 271 ASSERT_EQ(0u, rootScrollLayer->nonFastScrollableRegion().size()); | 271 ASSERT_EQ(0u, rootScrollLayer->nonFastScrollableRegion().size()); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) | 452 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) |
| 453 { | 453 { |
| 454 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); | 454 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); |
| 455 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); | 455 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); |
| 456 forceFullCompositingUpdate(); | 456 forceFullCompositingUpdate(); |
| 457 // This test document setup an iframe with scrollbars, then switch to | 457 // This test document setup an iframe with scrollbars, then switch to |
| 458 // an empty document by javascript. | 458 // an empty document by javascript. |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace | 461 } // namespace |
| OLD | NEW |