| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/string_util.h" | 5 #include "base/string_util.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "webkit/api/public/WebData.h" |
| 8 #include "webkit/api/public/WebURL.h" |
| 7 #include "webkit/glue/webframe.h" | 9 #include "webkit/glue/webframe.h" |
| 8 #include "webkit/glue/webview.h" | 10 #include "webkit/glue/webview.h" |
| 9 #include "webkit/tools/test_shell/test_shell_test.h" | 11 #include "webkit/tools/test_shell/test_shell_test.h" |
| 10 | 12 |
| 11 class WebFrameTest : public TestShellTest { | 13 class WebFrameTest : public TestShellTest { |
| 12 public: | 14 public: |
| 13 }; | 15 }; |
| 14 | 16 |
| 15 TEST_F(WebFrameTest, GetContentAsPlainText) { | 17 TEST_F(WebFrameTest, GetContentAsPlainText) { |
| 16 WebView* view = test_shell_->webView(); | 18 WebView* view = test_shell_->webView(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 EXPECT_FALSE(frame->HasSelection()); | 85 EXPECT_FALSE(frame->HasSelection()); |
| 84 frame->SelectAll(); | 86 frame->SelectAll(); |
| 85 EXPECT_TRUE(frame->HasSelection()); | 87 EXPECT_TRUE(frame->HasSelection()); |
| 86 frame->ClearSelection(); | 88 frame->ClearSelection(); |
| 87 EXPECT_FALSE(frame->HasSelection()); | 89 EXPECT_FALSE(frame->HasSelection()); |
| 88 std::string selection_html = frame->GetSelection(true); | 90 std::string selection_html = frame->GetSelection(true); |
| 89 EXPECT_TRUE(selection_html.empty()); | 91 EXPECT_TRUE(selection_html.empty()); |
| 90 | 92 |
| 91 } | 93 } |
| 92 | 94 |
| OLD | NEW |