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

Side by Side Diff: content/renderer/dom_serializer_browsertest.cc

Issue 1147533005: Disable DomSerializerTests.SerializeHTMLDOMWithDocType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 typedef base::hash_map<std::string, bool> SerializationFinishStatusMap; 771 typedef base::hash_map<std::string, bool> SerializationFinishStatusMap;
772 SerializationFinishStatusMap serialization_finish_status_; 772 SerializationFinishStatusMap serialization_finish_status_;
773 // Flag indicates whether the process of serializing DOM is finished or not. 773 // Flag indicates whether the process of serializing DOM is finished or not.
774 bool serialized_; 774 bool serialized_;
775 // The local_directory_name_ is dummy relative path of directory which 775 // The local_directory_name_ is dummy relative path of directory which
776 // contain all saved auxiliary files included all sub frames and resources. 776 // contain all saved auxiliary files included all sub frames and resources.
777 const base::FilePath local_directory_name_; 777 const base::FilePath local_directory_name_;
778 }; 778 };
779 779
780 // If original contents have document type, the serialized contents also have 780 // If original contents have document type, the serialized contents also have
781 // document type. 781 // document type.
brucedawson 2015/05/15 22:01:34 Should add a comment here that links to the bug. S
Elly Fong-Jones 2015/05/18 17:06:40 Done.
782 IN_PROC_BROWSER_TEST_F(DomSerializerTests, SerializeHTMLDOMWithDocType) { 782 IN_PROC_BROWSER_TEST_F(DomSerializerTests,
783 DISABLED_SerializeHTMLDOMWithDocType) {
783 base::FilePath page_file_path = 784 base::FilePath page_file_path =
784 GetTestFilePath("dom_serializer", "youtube_1.htm"); 785 GetTestFilePath("dom_serializer", "youtube_1.htm");
785 GURL file_url = net::FilePathToFileURL(page_file_path); 786 GURL file_url = net::FilePathToFileURL(page_file_path);
786 ASSERT_TRUE(file_url.SchemeIsFile()); 787 ASSERT_TRUE(file_url.SchemeIsFile());
787 // Load the test file. 788 // Load the test file.
788 NavigateToURL(shell(), file_url); 789 NavigateToURL(shell(), file_url);
789 790
790 PostTaskToInProcessRendererAndWait( 791 PostTaskToInProcessRendererAndWait(
791 base::Bind(&DomSerializerTests::SerializeHTMLDOMWithDocTypeOnRenderer, 792 base::Bind(&DomSerializerTests::SerializeHTMLDOMWithDocTypeOnRenderer,
792 base::Unretained(this), file_url)); 793 base::Unretained(this), file_url));
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 NavigateToURL(shell(), file_url); 1019 NavigateToURL(shell(), file_url);
1019 1020
1020 PostTaskToInProcessRendererAndWait( 1021 PostTaskToInProcessRendererAndWait(
1021 base::Bind( 1022 base::Bind(
1022 &DomSerializerTests:: 1023 &DomSerializerTests::
1023 SubResourceForElementsInNonHTMLNamespaceOnRenderer, 1024 SubResourceForElementsInNonHTMLNamespaceOnRenderer,
1024 base::Unretained(this), file_url)); 1025 base::Unretained(this), file_url));
1025 } 1026 }
1026 1027
1027 } // namespace content 1028 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698