diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 17:50:22 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 17:50:22 +0000 |
commit | a100d76bbc0afe58ef7761a1eaf06cb1489cc1b1 (patch) | |
tree | 4b186f6c37ce0adc97516efce9ec31cea47e732c /webkit/glue/webframe_unittest.cc | |
parent | 8a9f6525ba1fb42d4b8754bd93c25f5d9e559849 (diff) | |
download | chromium_src-a100d76bbc0afe58ef7761a1eaf06cb1489cc1b1.zip chromium_src-a100d76bbc0afe58ef7761a1eaf06cb1489cc1b1.tar.gz chromium_src-a100d76bbc0afe58ef7761a1eaf06cb1489cc1b1.tar.bz2 |
Remove WebFrame::selectAll and WebFrame::clearSelection in favor of having
consumers use executeCommand.
Patch by Marshall Greenblatt
R=darin
BUG=19270
TEST=covered by unit tests
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_unittest.cc')
-rw-r--r-- | webkit/glue/webframe_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/webframe_unittest.cc b/webkit/glue/webframe_unittest.cc index fc5746e..00fe2fa 100644 --- a/webkit/glue/webframe_unittest.cc +++ b/webkit/glue/webframe_unittest.cc @@ -85,9 +85,9 @@ TEST_F(WebFrameTest, GetFullHtmlOfPage) { // Test selection check EXPECT_FALSE(frame->hasSelection()); - frame->selectAll(); + frame->executeCommand(WebString::fromUTF8("SelectAll")); EXPECT_TRUE(frame->hasSelection()); - frame->clearSelection(); + frame->executeCommand(WebString::fromUTF8("Unselect")); EXPECT_FALSE(frame->hasSelection()); WebString selection_html = frame->selectionAsMarkup(); EXPECT_TRUE(selection_html.isEmpty()); |