OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 | 77 |
78 // Actual file has been fully checked. | 78 // Actual file has been fully checked. |
79 return diff_lines; | 79 return diff_lines; |
80 } | 80 } |
81 | 81 |
82 DumpAccessibilityTreeHelper helper_; | 82 DumpAccessibilityTreeHelper helper_; |
83 }; | 83 }; |
84 | 84 |
85 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 85 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
86 PlatformTreeDifferenceTest) { | 86 DISABLED_PlatformTreeDifferenceTest) { |
87 RenderWidgetHostViewPort* host_view = static_cast<RenderWidgetHostViewPort*>( | 87 RenderWidgetHostViewPort* host_view = static_cast<RenderWidgetHostViewPort*>( |
88 chrome::GetActiveWebContents(browser())->GetRenderWidgetHostView()); | 88 chrome::GetActiveWebContents(browser())->GetRenderWidgetHostView()); |
89 RenderWidgetHost* host = host_view->GetRenderWidgetHost(); | 89 RenderWidgetHost* host = host_view->GetRenderWidgetHost(); |
90 RenderViewHostImpl* view_host = | 90 RenderViewHostImpl* view_host = |
91 static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(host)); | 91 static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(host)); |
92 view_host->set_save_accessibility_tree_for_testing(true); | 92 view_host->set_save_accessibility_tree_for_testing(true); |
93 view_host->SetAccessibilityMode(AccessibilityModeComplete); | 93 view_host->SetAccessibilityMode(AccessibilityModeComplete); |
94 | 94 |
95 // Setup test paths. | 95 // Setup test paths. |
96 FilePath dir_test_data; | 96 FilePath dir_test_data; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 EXPECT_TRUE(file_util::WriteFile( | 196 EXPECT_TRUE(file_util::WriteFile( |
197 actual_file, actual_contents.c_str(), actual_contents.size())); | 197 actual_file, actual_contents.c_str(), actual_contents.size())); |
198 | 198 |
199 ADD_FAILURE() << "No expectation found. Create it by doing:\n" | 199 ADD_FAILURE() << "No expectation found. Create it by doing:\n" |
200 << "mv " << actual_file.LossyDisplayName() << " " | 200 << "mv " << actual_file.LossyDisplayName() << " " |
201 << expected_file.LossyDisplayName(); | 201 << expected_file.LossyDisplayName(); |
202 } | 202 } |
203 } while (!(html_file = file_enumerator.Next()).empty()); | 203 } while (!(html_file = file_enumerator.Next()).empty()); |
204 } | 204 } |
OLD | NEW |