| Index: Source/web/tests/WebViewTest.cpp
|
| diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
|
| index e08141cef90070d14f80dab63fd3eb6315a34381..8b745f9bd2d9f2de2f98ce3a11da40efa275c6e2 100644
|
| --- a/Source/web/tests/WebViewTest.cpp
|
| +++ b/Source/web/tests/WebViewTest.cpp
|
| @@ -1505,6 +1505,8 @@ TEST_F(WebViewTest, DispatchesFocusBlurOnViewToggle)
|
|
|
| TEST_F(WebViewTest, SmartClipData)
|
| {
|
| + WebString clipData;
|
| + WebRect clipRect;
|
| URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8("Ahem.ttf"));
|
| URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8("smartclip.html"));
|
| WebView* webView = m_webViewHelper.initializeAndLoad(m_baseURL + "smartclip.html");
|
| @@ -1512,9 +1514,8 @@ TEST_F(WebViewTest, SmartClipData)
|
| webView->resize(WebSize(500, 500));
|
| webView->layout();
|
| WebRect cropRect(300, 125, 100, 50);
|
| -
|
| - // FIXME: We should test the structure of the data we get back.
|
| - EXPECT_FALSE(webView->getSmartClipData(cropRect).isEmpty());
|
| + webView->getSmartClipData(cropRect, clipData, clipRect);
|
| + EXPECT_FALSE(clipData.isEmpty());
|
| }
|
|
|
| class CreateChildCounterFrameClient : public FrameTestHelpers::TestWebFrameClient {
|
|
|