Index: Source/web/tests/WebViewTest.cpp |
diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp |
index fb8cd7bc52ffb529c1ff96299d4b415deb33af0b..253ff6c3511564fde98ce33018abede528c9a27b 100644 |
--- a/Source/web/tests/WebViewTest.cpp |
+++ b/Source/web/tests/WebViewTest.cpp |
@@ -1951,9 +1951,6 @@ void WebViewTest::testSelectionRootBounds(const char* htmlFile, float pageScaleF |
HTMLDocument* document = toHTMLDocument(frame->frame()->document()); |
WebRect expectedRootBounds = ExpectedRootBounds(document, webView->pageScaleFactor()); |
- WebRect actualRootBounds; |
- webView->getSelectionRootBounds(actualRootBounds); |
- ASSERT_EQ(expectedRootBounds, actualRootBounds); |
WebRect anchor, focus; |
webView->selectionBounds(anchor, focus); |
@@ -1963,53 +1960,6 @@ void WebViewTest::testSelectionRootBounds(const char* htmlFile, float pageScaleF |
ASSERT_EQ(url.find("overflow") == std::string::npos, expectedIntRect.contains(focus)); |
} |
-TEST_F(WebViewTest, GetSelectionRootBounds) |
-{ |
- // Register all the pages we will be using. |
- registerMockedHttpURLLoad("select_range_basic.html"); |
- registerMockedHttpURLLoad("select_range_div_editable.html"); |
- registerMockedHttpURLLoad("select_range_scroll.html"); |
- registerMockedHttpURLLoad("select_range_span_editable.html"); |
- registerMockedHttpURLLoad("select_range_input.html"); |
- registerMockedHttpURLLoad("select_range_input_overflow.html"); |
- registerMockedHttpURLLoad("select_range_textarea.html"); |
- registerMockedHttpURLLoad("select_range_textarea_overflow.html"); |
- registerMockedHttpURLLoad("select_range_iframe.html"); |
- registerMockedHttpURLLoad("select_range_iframe_div_editable.html"); |
- registerMockedHttpURLLoad("select_range_iframe_scroll.html"); |
- registerMockedHttpURLLoad("select_range_iframe_span_editable.html"); |
- registerMockedHttpURLLoad("select_range_iframe_input.html"); |
- registerMockedHttpURLLoad("select_range_iframe_input_overflow.html"); |
- registerMockedHttpURLLoad("select_range_iframe_textarea.html"); |
- registerMockedHttpURLLoad("select_range_iframe_textarea_overflow.html"); |
- |
- // Test with simple pages. |
- testSelectionRootBounds("select_range_basic.html", 1.0f); |
- testSelectionRootBounds("select_range_div_editable.html", 1.0f); |
- testSelectionRootBounds("select_range_scroll.html", 1.0f); |
- testSelectionRootBounds("select_range_span_editable.html", 1.0f); |
- testSelectionRootBounds("select_range_input.html", 1.0f); |
- testSelectionRootBounds("select_range_input_overflow.html", 1.0f); |
- testSelectionRootBounds("select_range_textarea.html", 1.0f); |
- testSelectionRootBounds("select_range_textarea_overflow.html", 1.0f); |
- |
- // Test with the same pages as above in iframes. |
- testSelectionRootBounds("select_range_iframe.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_div_editable.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_scroll.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_span_editable.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_input.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_input_overflow.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_textarea.html", 1.0f); |
- testSelectionRootBounds("select_range_iframe_textarea_overflow.html", 1.0f); |
- |
- // Basic page with scale factor. |
- testSelectionRootBounds("select_range_basic.html", 0.0f); |
- testSelectionRootBounds("select_range_basic.html", 0.1f); |
- testSelectionRootBounds("select_range_basic.html", 1.5f); |
- testSelectionRootBounds("select_range_basic.html", 2.0f); |
-} |
- |
TEST_F(WebViewTest, GetSelectionRootBoundsBrokenHeight) |
pdr.
2014/12/04 19:01:59
Lets just remove this test entirely.
|
{ |
WebSize contentSize = WebSize(640, 480); |
@@ -2026,9 +1976,6 @@ TEST_F(WebViewTest, GetSelectionRootBoundsBrokenHeight) |
EXPECT_TRUE(frame->frame()->document()->isHTMLDocument()); |
WebRect expectedRootBounds = WebRect(0, 0, contentSize.width, contentSize.height); |
- WebRect actualRootBounds; |
- webView->getSelectionRootBounds(actualRootBounds); |
- ASSERT_EQ(expectedRootBounds, actualRootBounds); |
} |
class NonUserInputTextUpdateWebViewClient : public FrameTestHelpers::TestWebViewClient { |