OLD | NEW |
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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 PostTaskToInProcessRendererAndWait( | 861 PostTaskToInProcessRendererAndWait( |
862 base::Bind( | 862 base::Bind( |
863 &DomSerializerTests::SerializeHTMLDOMWithAddingMOTWOnRenderer, | 863 &DomSerializerTests::SerializeHTMLDOMWithAddingMOTWOnRenderer, |
864 base::Unretained(this), file_url, original_contents)); | 864 base::Unretained(this), file_url, original_contents)); |
865 } | 865 } |
866 | 866 |
867 // When serializing DOM, we will add the META which have correct charset | 867 // When serializing DOM, we will add the META which have correct charset |
868 // declaration as first child of HEAD element for resolving WebKit bug: | 868 // declaration as first child of HEAD element for resolving WebKit bug: |
869 // http://bugs.webkit.org/show_bug.cgi?id=16621 even the original document | 869 // http://bugs.webkit.org/show_bug.cgi?id=16621 even the original document |
870 // does not have META charset declaration. | 870 // does not have META charset declaration. |
| 871 // Disabled by battre@ on 2015-05-21, see https://crbug.com/488495. |
| 872 #if defined(OS_MACOSX) |
| 873 #define MAYBE_SerializeHTMLDOMWithNoMetaCharsetInOriginalDoc \ |
| 874 DISABLED_SerializeHTMLDOMWithNoMetaCharsetInOriginalDoc |
| 875 #else |
| 876 #define MAYBE_SerializeHTMLDOMWithNoMetaCharsetInOriginalDoc \ |
| 877 SerializeHTMLDOMWithNoMetaCharsetInOriginalDoc |
| 878 #endif |
871 IN_PROC_BROWSER_TEST_F(DomSerializerTests, | 879 IN_PROC_BROWSER_TEST_F(DomSerializerTests, |
872 SerializeHTMLDOMWithNoMetaCharsetInOriginalDoc) { | 880 MAYBE_SerializeHTMLDOMWithNoMetaCharsetInOriginalDoc) { |
873 base::FilePath page_file_path = | 881 base::FilePath page_file_path = |
874 GetTestFilePath("dom_serializer", "youtube_1.htm"); | 882 GetTestFilePath("dom_serializer", "youtube_1.htm"); |
875 // Get file URL. | 883 // Get file URL. |
876 GURL file_url = net::FilePathToFileURL(page_file_path); | 884 GURL file_url = net::FilePathToFileURL(page_file_path); |
877 ASSERT_TRUE(file_url.SchemeIsFile()); | 885 ASSERT_TRUE(file_url.SchemeIsFile()); |
878 // Load the test file. | 886 // Load the test file. |
879 NavigateToURL(shell(), file_url); | 887 NavigateToURL(shell(), file_url); |
880 | 888 |
881 PostTaskToInProcessRendererAndWait( | 889 PostTaskToInProcessRendererAndWait( |
882 base::Bind( | 890 base::Bind( |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 NavigateToURL(shell(), file_url); | 1034 NavigateToURL(shell(), file_url); |
1027 | 1035 |
1028 PostTaskToInProcessRendererAndWait( | 1036 PostTaskToInProcessRendererAndWait( |
1029 base::Bind( | 1037 base::Bind( |
1030 &DomSerializerTests:: | 1038 &DomSerializerTests:: |
1031 SubResourceForElementsInNonHTMLNamespaceOnRenderer, | 1039 SubResourceForElementsInNonHTMLNamespaceOnRenderer, |
1032 base::Unretained(this), file_url)); | 1040 base::Unretained(this), file_url)); |
1033 } | 1041 } |
1034 | 1042 |
1035 } // namespace content | 1043 } // namespace content |
OLD | NEW |