| 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 10838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10849 document->frame()->eventHandler().handleMouseMoveEvent( | 10849 document->frame()->eventHandler().handleMouseMoveEvent( |
| 10850 mouseMoveEvent, Vector<PlatformMouseEvent>()); | 10850 mouseMoveEvent, Vector<PlatformMouseEvent>()); |
| 10851 | 10851 |
| 10852 EXPECT_EQ(document->hoverNode(), | 10852 EXPECT_EQ(document->hoverNode(), |
| 10853 document->frame()->chromeClient().lastSetTooltipNodeForTesting()); | 10853 document->frame()->chromeClient().lastSetTooltipNodeForTesting()); |
| 10854 EXPECT_EQ(div2Tag, | 10854 EXPECT_EQ(div2Tag, |
| 10855 document->frame()->chromeClient().lastSetTooltipNodeForTesting()); | 10855 document->frame()->chromeClient().lastSetTooltipNodeForTesting()); |
| 10856 } | 10856 } |
| 10857 | 10857 |
| 10858 // Makes sure that mouse hover over an overlay scrollbar doesn't activate | 10858 // Makes sure that mouse hover over an overlay scrollbar doesn't activate |
| 10859 // elements below unless the scrollbar is faded out. | 10859 // elements below(except the Element that owns the scrollbar) unless the |
| 10860 // scrollbar is faded out. |
| 10860 TEST_F(WebFrameTest, MouseOverLinkAndOverlayScrollbar) { | 10861 TEST_F(WebFrameTest, MouseOverLinkAndOverlayScrollbar) { |
| 10861 FrameTestHelpers::WebViewHelper webViewHelper; | 10862 FrameTestHelpers::WebViewHelper webViewHelper; |
| 10862 webViewHelper.initialize(true, nullptr, nullptr, nullptr, | 10863 webViewHelper.initialize(true, nullptr, nullptr, nullptr, |
| 10863 [](WebSettings* settings) {}); | 10864 [](WebSettings* settings) {}); |
| 10864 webViewHelper.resize(WebSize(20, 20)); | 10865 webViewHelper.resize(WebSize(20, 20)); |
| 10865 WebViewImpl* webView = webViewHelper.webView(); | 10866 WebViewImpl* webView = webViewHelper.webView(); |
| 10866 | 10867 |
| 10867 initializeWithHTML(*webView->mainFrameImpl()->frame(), | 10868 initializeWithHTML(*webView->mainFrameImpl()->frame(), |
| 10868 "<!DOCTYPE html>" | 10869 "<!DOCTYPE html>" |
| 10869 "<a id='a' href='javascript:void(0);'>" | 10870 "<a id='a' href='javascript:void(0);'>" |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11265 | 11266 |
| 11266 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); | 11267 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); |
| 11267 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); | 11268 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); |
| 11268 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); | 11269 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); |
| 11269 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); | 11270 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); |
| 11270 | 11271 |
| 11271 webViewHelper.reset(); | 11272 webViewHelper.reset(); |
| 11272 } | 11273 } |
| 11273 | 11274 |
| 11274 } // namespace blink | 11275 } // namespace blink |
| OLD | NEW |