OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 | 1125 |
1126 size_t location; | 1126 size_t location; |
1127 size_t length; | 1127 size_t length; |
1128 EXPECT_TRUE(toWebViewImpl(webView)->caretOrSelectionRange(&location, &length
)); | 1128 EXPECT_TRUE(toWebViewImpl(webView)->caretOrSelectionRange(&location, &length
)); |
1129 EXPECT_EQ(location, 0UL); | 1129 EXPECT_EQ(location, 0UL); |
1130 EXPECT_EQ(length, testWord.length()); | 1130 EXPECT_EQ(length, testWord.length()); |
1131 } | 1131 } |
1132 | 1132 |
1133 static void configueCompositingWebView(WebSettings* settings) | 1133 static void configueCompositingWebView(WebSettings* settings) |
1134 { | 1134 { |
1135 settings->setForceCompositingMode(true); | |
1136 settings->setAcceleratedCompositingEnabled(true); | 1135 settings->setAcceleratedCompositingEnabled(true); |
1137 settings->setAcceleratedCompositingForFixedPositionEnabled(true); | 1136 settings->setAcceleratedCompositingForFixedPositionEnabled(true); |
1138 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); | 1137 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); |
1139 settings->setCompositedScrollingForFramesEnabled(true); | 1138 settings->setCompositedScrollingForFramesEnabled(true); |
1140 } | 1139 } |
1141 | 1140 |
1142 TEST_F(WebViewTest, ShowPressOnTransformedLink) | 1141 TEST_F(WebViewTest, ShowPressOnTransformedLink) |
1143 { | 1142 { |
1144 OwnPtr<FrameTestHelpers::TestWebViewClient> fakeCompositingWebViewClient = a
doptPtr(new FrameTestHelpers::TestWebViewClient()); | 1143 OwnPtr<FrameTestHelpers::TestWebViewClient> fakeCompositingWebViewClient = a
doptPtr(new FrameTestHelpers::TestWebViewClient()); |
1145 FrameTestHelpers::WebViewHelper webViewHelper; | 1144 FrameTestHelpers::WebViewHelper webViewHelper; |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1978 | 1977 |
1979 EXPECT_EQ(0, client.getUserGestureNotificationsCount()); | 1978 EXPECT_EQ(0, client.getUserGestureNotificationsCount()); |
1980 | 1979 |
1981 EXPECT_TRUE(tapElementById(webView, WebInputEvent::GestureTap, WebString::fr
omUTF8("target"))); | 1980 EXPECT_TRUE(tapElementById(webView, WebInputEvent::GestureTap, WebString::fr
omUTF8("target"))); |
1982 | 1981 |
1983 EXPECT_EQ(1, client.getUserGestureNotificationsCount()); | 1982 EXPECT_EQ(1, client.getUserGestureNotificationsCount()); |
1984 webView->setAutofillClient(0); | 1983 webView->setAutofillClient(0); |
1985 } | 1984 } |
1986 | 1985 |
1987 } // namespace | 1986 } // namespace |
OLD | NEW |