| 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 "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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "base/file_path.h" | 25 #include "base/file_path.h" |
| 26 #include "base/file_util.h" | 26 #include "base/file_util.h" |
| 27 #include "base/hash_tables.h" | 27 #include "base/hash_tables.h" |
| 28 #include "base/string_util.h" | 28 #include "base/string_util.h" |
| 29 #include "net/base/net_util.h" | 29 #include "net/base/net_util.h" |
| 30 #include "net/url_request/url_request_context.h" | 30 #include "net/url_request/url_request_context.h" |
| 31 #include "webkit/glue/dom_operations.h" | 31 #include "webkit/glue/dom_operations.h" |
| 32 #include "webkit/glue/dom_serializer.h" | 32 #include "webkit/glue/dom_serializer.h" |
| 33 #include "webkit/glue/dom_serializer_delegate.h" | 33 #include "webkit/glue/dom_serializer_delegate.h" |
| 34 #include "webkit/glue/glue_util.h" |
| 34 #include "webkit/glue/webframe.h" | 35 #include "webkit/glue/webframe.h" |
| 35 #include "webkit/glue/webframe_impl.h" | 36 #include "webkit/glue/webframe_impl.h" |
| 36 #include "webkit/glue/webview.h" | 37 #include "webkit/glue/webview.h" |
| 37 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 38 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
| 38 #include "webkit/tools/test_shell/test_shell_test.h" | 39 #include "webkit/tools/test_shell/test_shell_test.h" |
| 39 | 40 |
| 40 namespace { | 41 namespace { |
| 41 | 42 |
| 42 class DomSerializerTests : public TestShellTest, | 43 class DomSerializerTests : public TestShellTest, |
| 43 public webkit_glue::DomSerializerDelegate { | 44 public webkit_glue::DomSerializerDelegate { |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 } | 666 } |
| 666 // We have one more added BASE tag which is generated by JavaScript. | 667 // We have one more added BASE tag which is generated by JavaScript. |
| 667 ASSERT_EQ(new_base_tag_count, original_base_tag_count + 1); | 668 ASSERT_EQ(new_base_tag_count, original_base_tag_count + 1); |
| 668 // Make sure in new document, the base URL is equal with the |path_dir_url|. | 669 // Make sure in new document, the base URL is equal with the |path_dir_url|. |
| 669 GURL new_base_url( | 670 GURL new_base_url( |
| 670 webkit_glue::StringToStdString(doc->baseURL())); | 671 webkit_glue::StringToStdString(doc->baseURL())); |
| 671 ASSERT_EQ(new_base_url, path_dir_url); | 672 ASSERT_EQ(new_base_url, path_dir_url); |
| 672 } | 673 } |
| 673 | 674 |
| 674 } // namespace | 675 } // namespace |
| OLD | NEW |