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

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

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/dom_operations_unittest.cc ('k') | webkit/glue/editor_client_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 "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "Document.h" 10 #include "Document.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 const std::string& GetSerializedContentForFrame( 90 const std::string& GetSerializedContentForFrame(
91 const GURL& frame_url) { 91 const GURL& frame_url) {
92 return serialized_frame_map_[frame_url.spec()]; 92 return serialized_frame_map_[frame_url.spec()];
93 } 93 }
94 94
95 // Load web page according to specific URL. 95 // Load web page according to specific URL.
96 void LoadPageFromURL(const GURL& page_url) { 96 void LoadPageFromURL(const GURL& page_url) {
97 // Load the test file. 97 // Load the test file.
98 test_shell_->ResetTestController(); 98 test_shell_->ResetTestController();
99 test_shell_->LoadURL(UTF8ToWide(page_url.spec()).c_str()); 99 test_shell_->LoadURL(page_url);
100 test_shell_->WaitTestFinished(); 100 test_shell_->WaitTestFinished();
101 } 101 }
102 102
103 // Load web page according to input content and relative URLs within 103 // Load web page according to input content and relative URLs within
104 // the document. 104 // the document.
105 void LoadContents(const std::string& contents, 105 void LoadContents(const std::string& contents,
106 const GURL& base_url, 106 const GURL& base_url,
107 const WebCore::String encoding_info) { 107 const WebCore::String encoding_info) {
108 test_shell_->ResetTestController(); 108 test_shell_->ResetTestController();
109 // If input encoding is empty, use UTF-8 as default encoding. 109 // If input encoding is empty, use UTF-8 as default encoding.
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 // "hello world" 812 // "hello world"
813 WebCore::HTMLElement* body_ele = doc->body(); 813 WebCore::HTMLElement* body_ele = doc->body();
814 ASSERT_TRUE(body_ele != NULL); 814 ASSERT_TRUE(body_ele != NULL);
815 WebCore::Node* text_node = body_ele->firstChild(); 815 WebCore::Node* text_node = body_ele->firstChild();
816 ASSERT_TRUE(text_node->isTextNode()); 816 ASSERT_TRUE(text_node->isTextNode());
817 const WebCore::String& text_node_contents = text_node->nodeValue(); 817 const WebCore::String& text_node_contents = text_node->nodeValue();
818 ASSERT_TRUE(text_node_contents == WebCore::String("hello world")); 818 ASSERT_TRUE(text_node_contents == WebCore::String("hello world"));
819 } 819 }
820 820
821 } // namespace 821 } // namespace
OLDNEW
« no previous file with comments | « webkit/glue/dom_operations_unittest.cc ('k') | webkit/glue/editor_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698