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

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: Use MAYBE pattern 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
782 IN_PROC_BROWSER_TEST_F(DomSerializerTests, SerializeHTMLDOMWithDocType) { 782 // Disabled by ellyjones@ on 2015-05-18, see https://crbug.com/488495.
783 #if defined(OS_MACOSX)
784 #define MAYBE_SerializeHTMLDOMWithDocType DISABLED_SerializeHTMLDOMWithDocType
785 #else
786 #define MAYBE_SerializeHTMLDOMWithDocType SerializeHTMLDOMWithDocType
787 #endif
788
789 IN_PROC_BROWSER_TEST_F(DomSerializerTests,
790 MAYBE_SerializeHTMLDOMWithDocType) {
783 base::FilePath page_file_path = 791 base::FilePath page_file_path =
784 GetTestFilePath("dom_serializer", "youtube_1.htm"); 792 GetTestFilePath("dom_serializer", "youtube_1.htm");
785 GURL file_url = net::FilePathToFileURL(page_file_path); 793 GURL file_url = net::FilePathToFileURL(page_file_path);
786 ASSERT_TRUE(file_url.SchemeIsFile()); 794 ASSERT_TRUE(file_url.SchemeIsFile());
787 // Load the test file. 795 // Load the test file.
788 NavigateToURL(shell(), file_url); 796 NavigateToURL(shell(), file_url);
789 797
790 PostTaskToInProcessRendererAndWait( 798 PostTaskToInProcessRendererAndWait(
791 base::Bind(&DomSerializerTests::SerializeHTMLDOMWithDocTypeOnRenderer, 799 base::Bind(&DomSerializerTests::SerializeHTMLDOMWithDocTypeOnRenderer,
792 base::Unretained(this), file_url)); 800 base::Unretained(this), file_url));
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 NavigateToURL(shell(), file_url); 1026 NavigateToURL(shell(), file_url);
1019 1027
1020 PostTaskToInProcessRendererAndWait( 1028 PostTaskToInProcessRendererAndWait(
1021 base::Bind( 1029 base::Bind(
1022 &DomSerializerTests:: 1030 &DomSerializerTests::
1023 SubResourceForElementsInNonHTMLNamespaceOnRenderer, 1031 SubResourceForElementsInNonHTMLNamespaceOnRenderer,
1024 base::Unretained(this), file_url)); 1032 base::Unretained(this), file_url));
1025 } 1033 }
1026 1034
1027 } // namespace content 1035 } // 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