Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: webkit/glue/webframe_unittest.cc

Issue 150146: Add Reload and LoadData methods to WebFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698