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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp

Issue 1413513009: Use mocked scrollbar in webkit unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
diff --git a/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp b/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
index b7b138c0c8a9d6cf62a4ebbe2dffc5d3c5d3a5a5..d185265eb2a6f675d12ace58f693009712999a23 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
+++ b/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
@@ -59,6 +59,8 @@ GestureEventWithHitTestResults getTargetedEvent(WebViewImpl* webViewImpl, WebGes
TEST(LinkHighlightImplTest, verifyWebViewImplIntegration)
{
+ FrameTestHelpers::UseMockScrollbarSettings mockScrollbarSettings;
+
const std::string baseURL("http://www.test.com/");
const std::string fileName("test_touch_link_highlight.html");
@@ -129,6 +131,8 @@ WebViewClient* compositingWebViewClient()
TEST(LinkHighlightImplTest, resetDuringNodeRemoval)
{
+ FrameTestHelpers::UseMockScrollbarSettings m_mockScrollbarSettings;
+
const std::string baseURL("http://www.test.com/");
const std::string fileName("test_touch_link_highlight.html");
@@ -167,6 +171,8 @@ TEST(LinkHighlightImplTest, resetDuringNodeRemoval)
TEST(LinkHighlightImplTest, multipleHighlights)
{
+ FrameTestHelpers::UseMockScrollbarSettings m_mockScrollbarSettings;
+
const std::string baseURL("http://www.test.com/");
const std::string fileName("test_touch_link_highlight.html");

Powered by Google App Engine
This is Rietveld 408576698