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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 EXPECT_EQ(location, 0UL); | 1092 EXPECT_EQ(location, 0UL); |
1093 EXPECT_EQ(length, testWord.length()); | 1093 EXPECT_EQ(length, testWord.length()); |
1094 } | 1094 } |
1095 | 1095 |
1096 static void configueCompositingWebView(WebSettings* settings) | 1096 static void configueCompositingWebView(WebSettings* settings) |
1097 { | 1097 { |
1098 settings->setForceCompositingMode(true); | 1098 settings->setForceCompositingMode(true); |
1099 settings->setAcceleratedCompositingEnabled(true); | 1099 settings->setAcceleratedCompositingEnabled(true); |
1100 settings->setAcceleratedCompositingForFixedPositionEnabled(true); | 1100 settings->setAcceleratedCompositingForFixedPositionEnabled(true); |
1101 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); | 1101 settings->setAcceleratedCompositingForOverflowScrollEnabled(true); |
1102 settings->setAcceleratedCompositingForScrollableFramesEnabled(true); | |
1103 settings->setCompositedScrollingForFramesEnabled(true); | 1102 settings->setCompositedScrollingForFramesEnabled(true); |
1104 } | 1103 } |
1105 | 1104 |
1106 TEST_F(WebViewTest, ShowPressOnTransformedLink) | 1105 TEST_F(WebViewTest, ShowPressOnTransformedLink) |
1107 { | 1106 { |
1108 OwnPtr<FakeCompositingWebViewClient> fakeCompositingWebViewClient = adoptPtr
(new FakeCompositingWebViewClient()); | 1107 OwnPtr<FakeCompositingWebViewClient> fakeCompositingWebViewClient = adoptPtr
(new FakeCompositingWebViewClient()); |
1109 FrameTestHelpers::WebViewHelper webViewHelper; | 1108 FrameTestHelpers::WebViewHelper webViewHelper; |
1110 WebViewImpl* webViewImpl = webViewHelper.initialize(true, 0, fakeCompositing
WebViewClient.get(), &configueCompositingWebView); | 1109 WebViewImpl* webViewImpl = webViewHelper.initialize(true, 0, fakeCompositing
WebViewClient.get(), &configueCompositingWebView); |
1111 | 1110 |
1112 int pageWidth = 640; | 1111 int pageWidth = 640; |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 client.reset(); | 1864 client.reset(); |
1866 EXPECT_FALSE(client.textIsUpdated()); | 1865 EXPECT_FALSE(client.textIsUpdated()); |
1867 document->setFocusedElement(nullptr); | 1866 document->setFocusedElement(nullptr); |
1868 webViewImpl->setFocus(false); | 1867 webViewImpl->setFocus(false); |
1869 EXPECT_NE(document->focusedElement(), static_cast<WebCore::Element*>(textAre
aElement)); | 1868 EXPECT_NE(document->focusedElement(), static_cast<WebCore::Element*>(textAre
aElement)); |
1870 inputElement->setValue("testB3"); | 1869 inputElement->setValue("testB3"); |
1871 EXPECT_FALSE(client.textIsUpdated()); | 1870 EXPECT_FALSE(client.textIsUpdated()); |
1872 } | 1871 } |
1873 | 1872 |
1874 } // namespace | 1873 } // namespace |
OLD | NEW |