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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |