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 10591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10602 EXPECT_TRUE( | 10602 EXPECT_TRUE( |
10603 scrollerArea->horizontalScrollbar()->shouldParticipateInHitTesting()); | 10603 scrollerArea->horizontalScrollbar()->shouldParticipateInHitTesting()); |
10604 EXPECT_TRUE( | 10604 EXPECT_TRUE( |
10605 scrollerArea->verticalScrollbar()->shouldParticipateInHitTesting()); | 10605 scrollerArea->verticalScrollbar()->shouldParticipateInHitTesting()); |
10606 } | 10606 } |
10607 | 10607 |
10608 // Makes sure that mouse hover over an overlay scrollbar doesn't activate | 10608 // Makes sure that mouse hover over an overlay scrollbar doesn't activate |
10609 // elements below unless the scrollbar is faded out. | 10609 // elements below unless the scrollbar is faded out. |
10610 TEST_F(WebFrameTest, MouseOverLinkAndOverlayScrollbar) { | 10610 TEST_F(WebFrameTest, MouseOverLinkAndOverlayScrollbar) { |
10611 FrameTestHelpers::WebViewHelper webViewHelper; | 10611 FrameTestHelpers::WebViewHelper webViewHelper; |
10612 webViewHelper.initialize( | 10612 webViewHelper.initialize(true, nullptr, nullptr, nullptr, |
10613 true, nullptr, nullptr, nullptr, | 10613 [](WebSettings* settings) {}); |
10614 [](WebSettings* settings) { settings->setDeviceSupportsMouse(true); }); | |
10615 webViewHelper.resize(WebSize(20, 20)); | 10614 webViewHelper.resize(WebSize(20, 20)); |
10616 WebViewImpl* webView = webViewHelper.webView(); | 10615 WebViewImpl* webView = webViewHelper.webView(); |
10617 | 10616 |
10618 initializeWithHTML(*webView->mainFrameImpl()->frame(), | 10617 initializeWithHTML(*webView->mainFrameImpl()->frame(), |
10619 "<!DOCTYPE html>" | 10618 "<!DOCTYPE html>" |
10620 "<a id='a' href='javascript:void(0);'>" | 10619 "<a id='a' href='javascript:void(0);'>" |
10621 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | 10620 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" |
10622 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | 10621 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" |
10623 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | 10622 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" |
10624 "</a>" | 10623 "</a>" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10943 | 10942 |
10944 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); | 10943 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); |
10945 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); | 10944 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); |
10946 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); | 10945 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); |
10947 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); | 10946 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); |
10948 | 10947 |
10949 webViewHelper.reset(); | 10948 webViewHelper.reset(); |
10950 } | 10949 } |
10951 | 10950 |
10952 } // namespace blink | 10951 } // namespace blink |
OLD | NEW |