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

Side by Side Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2536723007: Removed android scrolling fake mouse moves and device_supports_mouse (Closed)
Patch Set: rebase Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 10733 matching lines...) Expand 10 before | Expand all | Expand 10 after
10744 EXPECT_TRUE( 10744 EXPECT_TRUE(
10745 scrollerArea->horizontalScrollbar()->shouldParticipateInHitTesting()); 10745 scrollerArea->horizontalScrollbar()->shouldParticipateInHitTesting());
10746 EXPECT_TRUE( 10746 EXPECT_TRUE(
10747 scrollerArea->verticalScrollbar()->shouldParticipateInHitTesting()); 10747 scrollerArea->verticalScrollbar()->shouldParticipateInHitTesting());
10748 } 10748 }
10749 10749
10750 // Makes sure that mouse hover over an overlay scrollbar doesn't activate 10750 // Makes sure that mouse hover over an overlay scrollbar doesn't activate
10751 // elements below unless the scrollbar is faded out. 10751 // elements below unless the scrollbar is faded out.
10752 TEST_F(WebFrameTest, MouseOverLinkAndOverlayScrollbar) { 10752 TEST_F(WebFrameTest, MouseOverLinkAndOverlayScrollbar) {
10753 FrameTestHelpers::WebViewHelper webViewHelper; 10753 FrameTestHelpers::WebViewHelper webViewHelper;
10754 webViewHelper.initialize( 10754 webViewHelper.initialize(true, nullptr, nullptr, nullptr,
10755 true, nullptr, nullptr, nullptr, 10755 [](WebSettings* settings) {});
10756 [](WebSettings* settings) { settings->setDeviceSupportsMouse(true); });
10757 webViewHelper.resize(WebSize(20, 20)); 10756 webViewHelper.resize(WebSize(20, 20));
10758 WebViewImpl* webView = webViewHelper.webView(); 10757 WebViewImpl* webView = webViewHelper.webView();
10759 10758
10760 initializeWithHTML(*webView->mainFrameImpl()->frame(), 10759 initializeWithHTML(*webView->mainFrameImpl()->frame(),
10761 "<!DOCTYPE html>" 10760 "<!DOCTYPE html>"
10762 "<a id='a' href='javascript:void(0);'>" 10761 "<a id='a' href='javascript:void(0);'>"
10763 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 10762 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
10764 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 10763 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
10765 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 10764 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
10766 "</a>" 10765 "</a>"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
11095 11094
11096 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); 11095 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached());
11097 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); 11096 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading());
11098 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); 11097 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad());
11099 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); 11098 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents());
11100 11099
11101 webViewHelper.reset(); 11100 webViewHelper.reset();
11102 } 11101 }
11103 11102
11104 } // namespace blink 11103 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698