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

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

Issue 480803002: Merge CompositedScrollingForFrames into PreferCompositingToLCDText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/PinchViewportTest.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 std::string m_baseURL; 96 std::string m_baseURL;
97 FrameTestHelpers::TestWebViewClient m_mockWebViewClient; 97 FrameTestHelpers::TestWebViewClient m_mockWebViewClient;
98 98
99 private: 99 private:
100 static void configureSettings(WebSettings* settings) 100 static void configureSettings(WebSettings* settings)
101 { 101 {
102 settings->setJavaScriptEnabled(true); 102 settings->setJavaScriptEnabled(true);
103 settings->setAcceleratedCompositingEnabled(true); 103 settings->setAcceleratedCompositingEnabled(true);
104 settings->setPreferCompositingToLCDTextEnabled(true); 104 settings->setPreferCompositingToLCDTextEnabled(true);
105 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); 105 settings->setAcceleratedCompositingForOverflowScrollEnabled(true);
106 settings->setCompositedScrollingForFramesEnabled(true);
107 } 106 }
108 107
109 FrameTestHelpers::WebViewHelper m_helper; 108 FrameTestHelpers::WebViewHelper m_helper;
110 }; 109 };
111 110
112 TEST_F(ScrollingCoordinatorChromiumTest, fastScrollingByDefault) 111 TEST_F(ScrollingCoordinatorChromiumTest, fastScrollingByDefault)
113 { 112 {
114 navigateTo("about:blank"); 113 navigateTo("about:blank");
115 forceFullCompositingUpdate(); 114 forceFullCompositingUpdate();
116 115
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) 452 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash)
454 { 453 {
455 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); 454 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html");
456 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); 455 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html");
457 forceFullCompositingUpdate(); 456 forceFullCompositingUpdate();
458 // This test document setup an iframe with scrollbars, then switch to 457 // This test document setup an iframe with scrollbars, then switch to
459 // an empty document by javascript. 458 // an empty document by javascript.
460 } 459 }
461 460
462 } // namespace 461 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698