Index: Source/web/tests/WebViewTest.cpp |
diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp |
index 48c723b08c0c27cbe463173405bade557825a1cc..5747b80dc5d2d0435b5515b85a81caeb0f78854e 100644 |
--- a/Source/web/tests/WebViewTest.cpp |
+++ b/Source/web/tests/WebViewTest.cpp |
@@ -1486,6 +1486,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"); |
@@ -1493,9 +1495,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());} |
Inactive
2014/06/09 14:47:10
What's up with this trailing '}'?
AviD
2014/06/13 11:52:48
Done.
|
} |
class CreateChildCounterFrameClient : public FrameTestHelpers::TestWebFrameClient { |