OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |