Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: Source/web/tests/ScrollingCoordinatorChromiumTest.cpp

Issue 20103002: Make composited scrolling codepaths co-operate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline TestExpectations Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698