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

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

Issue 239533002: Combine settings about compositing scrollable frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/web/tests/CompositedLayerMappingTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 FakeWebViewClient m_mockWebViewClient; 113 FakeWebViewClient m_mockWebViewClient;
114 114
115 private: 115 private:
116 static void configureSettings(WebSettings* settings) 116 static void configureSettings(WebSettings* settings)
117 { 117 {
118 settings->setJavaScriptEnabled(true); 118 settings->setJavaScriptEnabled(true);
119 settings->setForceCompositingMode(true); 119 settings->setForceCompositingMode(true);
120 settings->setAcceleratedCompositingEnabled(true); 120 settings->setAcceleratedCompositingEnabled(true);
121 settings->setAcceleratedCompositingForFixedPositionEnabled(true); 121 settings->setAcceleratedCompositingForFixedPositionEnabled(true);
122 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); 122 settings->setAcceleratedCompositingForOverflowScrollEnabled(true);
123 settings->setAcceleratedCompositingForScrollableFramesEnabled(true);
124 settings->setCompositedScrollingForFramesEnabled(true); 123 settings->setCompositedScrollingForFramesEnabled(true);
125 } 124 }
126 125
127 FrameTestHelpers::WebViewHelper m_helper; 126 FrameTestHelpers::WebViewHelper m_helper;
128 }; 127 };
129 128
130 TEST_F(ScrollingCoordinatorChromiumTest, fastScrollingByDefault) 129 TEST_F(ScrollingCoordinatorChromiumTest, fastScrollingByDefault)
131 { 130 {
132 navigateTo("about:blank"); 131 navigateTo("about:blank");
133 forceFullCompositingUpdate(); 132 forceFullCompositingUpdate();
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) 462 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash)
464 { 463 {
465 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); 464 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html");
466 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); 465 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html");
467 forceFullCompositingUpdate(); 466 forceFullCompositingUpdate();
468 // This test document setup an iframe with scrollbars, then switch to 467 // This test document setup an iframe with scrollbars, then switch to
469 // an empty document by javascript. 468 // an empty document by javascript.
470 } 469 }
471 470
472 } // namespace 471 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/CompositedLayerMappingTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698