|
public:
Source/WebKit/chromium/tests/PopupMenuTest.cpp_sec1
|
| 182 |
protected: |
182 |
protected: |
| 183 |
virtual void SetUp() |
183 |
virtual void SetUp() |
| 184 |
{ |
184 |
{ |
| 185 |
// When touch is enabled, padding is added to option elements |
|
|
| 186 |
// In these tests, we'll assume touch is disabled. |
| 187 |
m_touchWasEnabled = RuntimeEnabledFeatures::touchEnabled(); |
| 188 |
RuntimeEnabledFeatures::setTouchEnabled(false); |
| 189 |
m_webView = static_cast<WebViewImpl*>(WebView::create(&m_webviewClient)); |
185 |
m_webView = static_cast<WebViewImpl*>(WebView::create(&m_webviewClient)); |
|
|
186 |
// When a touch screen is present, padding is added to option elements. |
| 187 |
// In these tests, we'll assume no touch screen is attached. |
| 188 |
m_webView->page()->settings()->setDeviceTouchScreen(false); |
| 190 |
m_webView->initializeMainFrame(&m_webFrameClient); |
189 |
m_webView->initializeMainFrame(&m_webFrameClient); |
| 191 |
m_popupMenu = adoptRef(new PopupMenuChromium(&m_popupMenuClient)); |
190 |
m_popupMenu = adoptRef(new PopupMenuChromium(&m_popupMenuClient)); |
| 192 |
} |
191 |
} |
|
protected:
Source/WebKit/chromium/tests/PopupMenuTest.cpp_sec2
|
| 196 |
m_popupMenu = 0; |
195 |
m_popupMenu = 0; |
| 197 |
m_webView->close(); |
196 |
m_webView->close(); |
| 198 |
webkit_support::UnregisterAllMockedURLs(); |
197 |
webkit_support::UnregisterAllMockedURLs(); |
| 199 |
RuntimeEnabledFeatures::setTouchEnabled(m_touchWasEnabled); |
|
|
| 200 |
} |
198 |
} |
| 201 |
|
199 |
|
| 202 |
// Returns true if there currently is a select popup in the WebView. |
200 |
// Returns true if there currently is a select popup in the WebView. |
|
protected:
Source/WebKit/chromium/tests/PopupMenuTest.cpp_sec3
|
| 284 |
TestWebFrameClient m_webFrameClient; |
282 |
TestWebFrameClient m_webFrameClient; |
| 285 |
TestPopupMenuClient m_popupMenuClient; |
283 |
TestPopupMenuClient m_popupMenuClient; |
| 286 |
RefPtr<PopupMenu> m_popupMenu; |
284 |
RefPtr<PopupMenu> m_popupMenu; |
| 287 |
bool m_touchWasEnabled; |
|
|
| 288 |
std::string baseURL; |
285 |
std::string baseURL; |
| 289 |
}; |
286 |
}; |
| 290 |
|
287 |
|