OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/webui/bidi_checker_web_ui_test.h" | 5 #include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #define MAYBE_TestDownloadsPageRTL DISABLED_TestDownloadsPageRTL | 29 #define MAYBE_TestDownloadsPageRTL DISABLED_TestDownloadsPageRTL |
30 #define MAYBE_TestMainHistoryPageRTL DISABLED_TestMainHistoryPageRTL | 30 #define MAYBE_TestMainHistoryPageRTL DISABLED_TestMainHistoryPageRTL |
31 #define MAYBE_TestNewTabPageRTL DISABLED_TestNewTabPageRTL | 31 #define MAYBE_TestNewTabPageRTL DISABLED_TestNewTabPageRTL |
32 #define MAYBE_TestPluginsPageRTL DISABLED_TestPluginsPageRTL | 32 #define MAYBE_TestPluginsPageRTL DISABLED_TestPluginsPageRTL |
33 #define MAYBE_TestSettingsAutofillPageRTL DISABLED_TestSettingsAutofillPageRTL | 33 #define MAYBE_TestSettingsAutofillPageRTL DISABLED_TestSettingsAutofillPageRTL |
34 #define MAYBE_TestSettingsPageRTL DISABLED_TestSettingsPageRTL | 34 #define MAYBE_TestSettingsPageRTL DISABLED_TestSettingsPageRTL |
35 #else | 35 #else |
36 #define MAYBE_TestCrashesPageRTL TestCrashesPageRTL | 36 #define MAYBE_TestCrashesPageRTL TestCrashesPageRTL |
37 #define MAYBE_TestDownloadsPageRTL TestDownloadsPageRTL | 37 #define MAYBE_TestDownloadsPageRTL TestDownloadsPageRTL |
38 #define MAYBE_TestMainHistoryPageRTL TestMainHistoryPageRTL | 38 #define MAYBE_TestMainHistoryPageRTL TestMainHistoryPageRTL |
39 #define MAYBE_TestNewTabPageRTL TestNewTabPageRTL | 39 // Disabled, http://crbug.com/97453 |
| 40 #define MAYBE_TestNewTabPageRTL DISABLED_TestNewTabPageRTL |
40 #define MAYBE_TestPluginsPageRTL TestPluginsPageRTL | 41 #define MAYBE_TestPluginsPageRTL TestPluginsPageRTL |
41 #define MAYBE_TestSettingsAutofillPageRTL TestSettingsAutofillPageRTL | 42 #define MAYBE_TestSettingsAutofillPageRTL TestSettingsAutofillPageRTL |
42 #define MAYBE_TestSettingsPageRTL TestSettingsPageRTL | 43 #define MAYBE_TestSettingsPageRTL TestSettingsPageRTL |
43 #endif | 44 #endif |
44 | 45 |
45 // Disabled, http://crbug.com/97453 | |
46 #define MAYBE_TestNewTabPageRTL DISABLED_TestNewTabPageRTL | |
47 | |
48 static const FilePath::CharType* kWebUIBidiCheckerLibraryJS = | 46 static const FilePath::CharType* kWebUIBidiCheckerLibraryJS = |
49 FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js"); | 47 FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js"); |
50 | 48 |
51 namespace { | 49 namespace { |
52 FilePath WebUIBidiCheckerLibraryJSPath() { | 50 FilePath WebUIBidiCheckerLibraryJSPath() { |
53 FilePath src_root; | 51 FilePath src_root; |
54 if (!PathService::Get(base::DIR_SOURCE_ROOT, &src_root)) | 52 if (!PathService::Get(base::DIR_SOURCE_ROOT, &src_root)) |
55 LOG(ERROR) << "Couldn't find source root"; | 53 LOG(ERROR) << "Couldn't find source root"; |
56 return src_root.Append(kWebUIBidiCheckerLibraryJS); | 54 return src_root.Append(kWebUIBidiCheckerLibraryJS); |
57 } | 55 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 "5125551234"); | 255 "5125551234"); |
258 | 256 |
259 PersonalDataManager* personal_data_manager = | 257 PersonalDataManager* personal_data_manager = |
260 browser()->profile()->GetPersonalDataManager(); | 258 browser()->profile()->GetPersonalDataManager(); |
261 ASSERT_TRUE(personal_data_manager); | 259 ASSERT_TRUE(personal_data_manager); |
262 | 260 |
263 personal_data_manager->AddProfile(profile); | 261 personal_data_manager->AddProfile(profile); |
264 | 262 |
265 WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(url.c_str(), true); | 263 WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(url.c_str(), true); |
266 } | 264 } |
OLD | NEW |