| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include <gtest/gtest.h> | 33 #include <gtest/gtest.h> |
| 34 #include "Element.h" | 34 #include "Element.h" |
| 35 #include "EventHandler.h" | 35 #include "EventHandler.h" |
| 36 #include "FrameView.h" | 36 #include "FrameView.h" |
| 37 #include "HTMLSelectElement.h" | 37 #include "HTMLSelectElement.h" |
| 38 #include "KeyboardCodes.h" | |
| 39 #include "PlatformMouseEvent.h" | 38 #include "PlatformMouseEvent.h" |
| 40 #include "PopupContainer.h" | |
| 41 #include "PopupMenu.h" | 39 #include "PopupMenu.h" |
| 42 #include "PopupMenuChromium.h" | |
| 43 #include "PopupMenuClient.h" | 40 #include "PopupMenuClient.h" |
| 44 #include "RuntimeEnabledFeatures.h" | 41 #include "RuntimeEnabledFeatures.h" |
| 45 #include "URLTestHelpers.h" | 42 #include "URLTestHelpers.h" |
| 46 #include "WebDocument.h" | 43 #include "WebDocument.h" |
| 47 #include "WebElement.h" | 44 #include "WebElement.h" |
| 48 #include "WebFrame.h" | 45 #include "WebFrame.h" |
| 49 #include "WebFrameClient.h" | 46 #include "WebFrameClient.h" |
| 50 #include "WebFrameImpl.h" | 47 #include "WebFrameImpl.h" |
| 51 #include "WebInputEvent.h" | 48 #include "WebInputEvent.h" |
| 52 #include "WebPopupMenuImpl.h" | 49 #include "WebPopupMenuImpl.h" |
| 53 #include "WebScreenInfo.h" | 50 #include "WebScreenInfo.h" |
| 54 #include "WebSettings.h" | 51 #include "WebSettings.h" |
| 55 #include "WebView.h" | 52 #include "WebView.h" |
| 56 #include "WebViewClient.h" | 53 #include "WebViewClient.h" |
| 57 #include "WebViewImpl.h" | 54 #include "WebViewImpl.h" |
| 55 #include "core/platform/chromium/KeyboardCodes.h" |
| 56 #include "core/platform/chromium/PopupContainer.h" |
| 57 #include "core/platform/chromium/PopupMenuChromium.h" |
| 58 #include "core/platform/graphics/Color.h" | 58 #include "core/platform/graphics/Color.h" |
| 59 #include "v8.h" | 59 #include "v8.h" |
| 60 #include <public/Platform.h> | 60 #include <public/Platform.h> |
| 61 #include <public/WebString.h> | 61 #include <public/WebString.h> |
| 62 #include <public/WebUnitTestSupport.h> | 62 #include <public/WebUnitTestSupport.h> |
| 63 #include <public/WebURL.h> | 63 #include <public/WebURL.h> |
| 64 #include <public/WebURLRequest.h> | 64 #include <public/WebURLRequest.h> |
| 65 #include <public/WebURLResponse.h> | 65 #include <public/WebURLResponse.h> |
| 66 | 66 |
| 67 using namespace WebCore; | 67 using namespace WebCore; |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 // menuItemHeight * 1.5 means the Y position on the item at index 1. | 505 // menuItemHeight * 1.5 means the Y position on the item at index 1. |
| 506 IntPoint row1Point(2, menuItemHeight * 1.5); | 506 IntPoint row1Point(2, menuItemHeight * 1.5); |
| 507 simulateLeftMouseDownEvent(row1Point); | 507 simulateLeftMouseDownEvent(row1Point); |
| 508 simulateLeftMouseUpEvent(row1Point); | 508 simulateLeftMouseUpEvent(row1Point); |
| 509 | 509 |
| 510 WebElement element = m_webView->mainFrame()->document().getElementById("mess
age"); | 510 WebElement element = m_webView->mainFrame()->document().getElementById("mess
age"); |
| 511 EXPECT_STREQ("click", element.innerText().utf8().data()); | 511 EXPECT_STREQ("click", element.innerText().utf8().data()); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace | 514 } // namespace |
| OLD | NEW |