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/BidiCheckerWebUITest.h" | 5 #include "chrome/browser/ui/webui/BidiCheckerWebUITest.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const GURL history_url = GURL("http://www.ynet.co.il"); | 56 const GURL history_url = GURL("http://www.ynet.co.il"); |
57 history_service->AddPage(history_url, history::SOURCE_BROWSED); | 57 history_service->AddPage(history_url, history::SOURCE_BROWSED); |
58 string16 title; | 58 string16 title; |
59 ASSERT_TRUE(UTF8ToUTF16("\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x21", | 59 ASSERT_TRUE(UTF8ToUTF16("\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x21", |
60 12, | 60 12, |
61 &title)); | 61 &title)); |
62 history_service->SetPageTitle(history_url, title); | 62 history_service->SetPageTitle(history_url, title); |
63 RunBidiCheckerOnPage(chrome::kChromeUIHistoryURL, false); | 63 RunBidiCheckerOnPage(chrome::kChromeUIHistoryURL, false); |
64 } | 64 } |
65 | 65 |
66 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestAboutAboutPageLTR) {\ | |
67 RunBidiCheckerOnPage(chrome::kChromeUIAboutAboutURL, false);\ | |
68 } | |
69 | |
70 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestAboutPageLTR) {\ | 66 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestAboutPageLTR) {\ |
71 RunBidiCheckerOnPage(chrome::kChromeUIAboutURL, false);\ | 67 RunBidiCheckerOnPage(chrome::kChromeUIAboutURL, false);\ |
72 } | 68 } |
73 | 69 |
74 // Times out. http://code.google.com/p/chromium/issues/detail?id=82896 | 70 // Times out. http://code.google.com/p/chromium/issues/detail?id=82896 |
75 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, | 71 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, |
76 DISABLED_TestBookmarksPageLTR) {\ | 72 DISABLED_TestBookmarksPageLTR) {\ |
77 RunBidiCheckerOnPage(chrome::kChromeUIBookmarksURL, false);\ | 73 RunBidiCheckerOnPage(chrome::kChromeUIBookmarksURL, false);\ |
78 } | 74 } |
79 | 75 |
(...skipping 14 matching lines...) Expand all Loading... |
94 } | 90 } |
95 | 91 |
96 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestPluginsPageLTR) {\ | 92 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestPluginsPageLTR) {\ |
97 RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL, false);\ | 93 RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL, false);\ |
98 } | 94 } |
99 | 95 |
100 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestSettingsPageLTR) {\ | 96 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestSettingsPageLTR) {\ |
101 RunBidiCheckerOnPage(chrome::kChromeUISettingsURL, false);\ | 97 RunBidiCheckerOnPage(chrome::kChromeUISettingsURL, false);\ |
102 } | 98 } |
103 | 99 |
| 100 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestVersionPageLTR) {\ |
| 101 RunBidiCheckerOnPage(chrome::kChromeUIVersionURL, false);\ |
| 102 } |
| 103 |
104 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, | 104 IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, |
105 TestSettingsAutofillPageLTR) { | 105 TestSettingsAutofillPageLTR) { |
106 std::string url(chrome::kChromeUISettingsURL); | 106 std::string url(chrome::kChromeUISettingsURL); |
107 url += std::string(chrome::kAutofillSubPage); | 107 url += std::string(chrome::kAutofillSubPage); |
108 | 108 |
109 autofill_test::DisableSystemServices(browser()->profile()); | 109 autofill_test::DisableSystemServices(browser()->profile()); |
110 AutofillProfile profile; | 110 AutofillProfile profile; |
111 autofill_test::SetProfileInfo( | 111 autofill_test::SetProfileInfo( |
112 &profile, | 112 &profile, |
113 "\xD7\x9E\xD7\xA9\xD7\x94", | 113 "\xD7\x9E\xD7\xA9\xD7\x94", |
(...skipping 11 matching lines...) Expand all Loading... |
125 "0000"); | 125 "0000"); |
126 | 126 |
127 PersonalDataManager* personal_data_manager = | 127 PersonalDataManager* personal_data_manager = |
128 browser()->profile()->GetPersonalDataManager(); | 128 browser()->profile()->GetPersonalDataManager(); |
129 ASSERT_TRUE(personal_data_manager); | 129 ASSERT_TRUE(personal_data_manager); |
130 | 130 |
131 personal_data_manager->AddProfile(profile); | 131 personal_data_manager->AddProfile(profile); |
132 | 132 |
133 RunBidiCheckerOnPage(url.c_str(), false); | 133 RunBidiCheckerOnPage(url.c_str(), false); |
134 } | 134 } |
OLD | NEW |