Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / bidi_checker_web_ui_test.cc
blob522c3e6f7905caa26663f2f4c6c1724f40eeaf3e
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h"
7 #include "base/base_paths.h"
8 #include "base/i18n/rtl.h"
9 #include "base/message_loop/message_loop.h"
10 #include "base/path_service.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/utf_string_conversions.h"
13 #include "base/synchronization/waitable_event.h"
14 #include "base/threading/platform_thread.h"
15 #include "base/time/time.h"
16 #include "base/values.h"
17 #include "chrome/browser/autofill/personal_data_manager_factory.h"
18 #include "chrome/browser/history/history_service_factory.h"
19 #include "chrome/browser/prefs/session_startup_pref.h"
20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/ui/browser.h"
22 #include "chrome/common/url_constants.h"
23 #include "chrome/test/base/ui_test_utils.h"
24 #include "components/autofill/core/browser/autofill_profile.h"
25 #include "components/autofill/core/browser/autofill_test_utils.h"
26 #include "components/autofill/core/browser/personal_data_manager.h"
27 #include "components/history/core/browser/history_service.h"
28 #include "content/public/browser/browser_thread.h"
29 #include "ui/base/resource/resource_bundle.h"
31 // Test cases here are disabled on all platforms due to http://crbug.com/511439
33 using autofill::AutofillProfile;
34 using autofill::PersonalDataManager;
36 static const base::FilePath::CharType* kWebUIBidiCheckerLibraryJS =
37 FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js");
39 namespace {
40 base::FilePath WebUIBidiCheckerLibraryJSPath() {
41 base::FilePath src_root;
42 if (!PathService::Get(base::DIR_SOURCE_ROOT, &src_root))
43 LOG(ERROR) << "Couldn't find source root";
44 return src_root.Append(kWebUIBidiCheckerLibraryJS);
47 // Since synchronization isn't complete for the ResourceBundle class, reload
48 // locale resources on the IO thread.
49 // crbug.com/95425, crbug.com/132752
50 void ReloadLocaleResourcesOnIOThread(const std::string& new_locale) {
51 if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)) {
52 LOG(ERROR)
53 << content::BrowserThread::IO
54 << " != " << base::PlatformThread::CurrentId();
55 NOTREACHED();
58 std::string locale;
60 base::ThreadRestrictions::ScopedAllowIO allow_io_scope;
61 locale.assign(
62 ResourceBundle::GetSharedInstance().ReloadLocaleResources(new_locale));
64 ASSERT_FALSE(locale.empty());
67 // Since synchronization isn't complete for the ResourceBundle class, reload
68 // locale resources on the IO thread.
69 // crbug.com/95425, crbug.com/132752
70 void ReloadLocaleResources(const std::string& new_locale) {
71 content::BrowserThread::PostTaskAndReply(
72 content::BrowserThread::IO,
73 FROM_HERE,
74 base::Bind(&ReloadLocaleResourcesOnIOThread, base::ConstRef(new_locale)),
75 base::MessageLoop::QuitClosure());
76 content::RunMessageLoop();
79 } // namespace
81 static const base::FilePath::CharType* kBidiCheckerTestsJS =
82 FILE_PATH_LITERAL("bidichecker_tests.js");
84 void WebUIBidiCheckerBrowserTest::SetUp() {
85 argv_ = base::CommandLine::ForCurrentProcess()->GetArgs();
88 void WebUIBidiCheckerBrowserTest::TearDown() {
89 // Reset command line to the way it was before the test was run.
90 base::CommandLine::ForCurrentProcess()->InitFromArgv(argv_);
93 WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {}
95 WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {}
97 void WebUIBidiCheckerBrowserTest::SetUpInProcessBrowserTestFixture() {
98 WebUIBrowserTest::SetUpInProcessBrowserTestFixture();
99 WebUIBrowserTest::AddLibrary(WebUIBidiCheckerLibraryJSPath());
100 WebUIBrowserTest::AddLibrary(base::FilePath(kBidiCheckerTestsJS));
103 void WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(
104 const std::string& page_url, bool is_rtl) {
105 ui_test_utils::NavigateToURL(browser(), GURL(page_url));
106 ASSERT_TRUE(RunJavascriptTest("runBidiChecker",
107 new base::StringValue(page_url),
108 new base::FundamentalValue(is_rtl)));
111 void DISABLED_WebUIBidiCheckerBrowserTestLTR::RunBidiCheckerOnPage(
112 const std::string& page_url) {
113 WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(page_url, false);
116 void DISABLED_WebUIBidiCheckerBrowserTestRTL::RunBidiCheckerOnPage(
117 const std::string& page_url) {
118 WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(page_url, true);
121 void DISABLED_WebUIBidiCheckerBrowserTestRTL::SetUpOnMainThread() {
122 WebUIBidiCheckerBrowserTest::SetUpOnMainThread();
123 base::FilePath pak_path;
124 app_locale_ = base::i18n::GetConfiguredLocale();
125 ASSERT_TRUE(PathService::Get(base::FILE_MODULE, &pak_path));
126 pak_path = pak_path.DirName();
127 pak_path = pak_path.AppendASCII("pseudo_locales");
128 pak_path = pak_path.AppendASCII("fake-bidi");
129 pak_path = pak_path.ReplaceExtension(FILE_PATH_LITERAL("pak"));
130 ResourceBundle::GetSharedInstance().OverrideLocalePakForTest(pak_path);
131 ReloadLocaleResources("he");
132 base::i18n::SetICUDefaultLocale("he");
135 void DISABLED_WebUIBidiCheckerBrowserTestRTL::TearDownOnMainThread() {
136 WebUIBidiCheckerBrowserTest::TearDownOnMainThread();
138 base::i18n::SetICUDefaultLocale(app_locale_);
139 ResourceBundle::GetSharedInstance().OverrideLocalePakForTest(
140 base::FilePath());
141 ReloadLocaleResources(app_locale_);
144 // Tests
146 //==============================
147 // chrome://settings/history
148 //==============================
150 static void SetupHistoryPageTest(Browser* browser,
151 const std::string& page_url,
152 const std::string& page_title) {
153 history::HistoryService* history_service =
154 HistoryServiceFactory::GetForProfile(browser->profile(),
155 ServiceAccessType::IMPLICIT_ACCESS);
156 const GURL history_url = GURL(page_url);
157 history_service->AddPage(
158 history_url, base::Time::Now(), history::SOURCE_BROWSED);
159 history_service->SetPageTitle(history_url, base::UTF8ToUTF16(page_title));
162 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
163 TestHistoryPage) {
164 // Test an Israeli news site with a Hebrew title.
165 SetupHistoryPageTest(browser(),
166 "http://www.ynet.co.il",
167 "\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x21");
168 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
171 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
172 TestHistoryPage) {
173 SetupHistoryPageTest(browser(), "http://www.google.com", "Google");
174 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
177 //==============================
178 // chrome://about
179 //==============================
181 // This page isn't localized to an RTL language so we test it only in English.
182 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR, TestAboutPage) {
183 RunBidiCheckerOnPage(chrome::kChromeUIAboutURL);
186 //==============================
187 // chrome://crashes
188 //==============================
190 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
191 TestCrashesPage) {
192 RunBidiCheckerOnPage(chrome::kChromeUICrashesURL);
195 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
196 TestCrashesPage) {
197 RunBidiCheckerOnPage(chrome::kChromeUICrashesURL);
200 //==============================
201 // chrome://downloads
202 //==============================
204 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
205 TestDownloadsPageLTR) {
206 RunBidiCheckerOnPage(chrome::kChromeUIDownloadsURL);
209 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
210 TestDownloadsPageRTL) {
211 RunBidiCheckerOnPage(chrome::kChromeUIDownloadsURL);
214 //==============================
215 // chrome://newtab
216 //==============================
218 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
219 TestNewTabPage) {
220 RunBidiCheckerOnPage(chrome::kChromeUINewTabURL);
223 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
224 TestNewTabPage) {
225 RunBidiCheckerOnPage(chrome::kChromeUINewTabURL);
228 //==============================
229 // chrome://plugins
230 //==============================
232 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
233 TestPluginsPage) {
234 RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL);
237 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
238 TestPluginsPage) {
239 RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL);
242 //==============================
243 // chrome://settings-frame
244 //==============================
246 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
247 TestSettingsPage) {
248 RunBidiCheckerOnPage(chrome::kChromeUISettingsFrameURL);
251 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
252 TestSettingsPage) {
253 RunBidiCheckerOnPage(chrome::kChromeUISettingsFrameURL);
256 static void SetupSettingsAutofillPageTest(Profile* profile,
257 const char* first_name,
258 const char* middle_name,
259 const char* last_name,
260 const char* email,
261 const char* company,
262 const char* address1,
263 const char* address2,
264 const char* city,
265 const char* state,
266 const char* zipcode,
267 const char* country,
268 const char* phone) {
269 autofill::test::DisableSystemServices(profile->GetPrefs());
270 AutofillProfile autofill_profile;
271 autofill::test::SetProfileInfo(&autofill_profile,
272 first_name,
273 middle_name,
274 last_name,
275 email,
276 company,
277 address1,
278 address2,
279 city,
280 state,
281 zipcode,
282 country,
283 phone);
284 PersonalDataManager* personal_data_manager =
285 autofill::PersonalDataManagerFactory::GetForProfile(profile);
286 ASSERT_TRUE(personal_data_manager);
287 personal_data_manager->AddProfile(autofill_profile);
290 // http://crbug.com/94642
291 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
292 DISABLED_TestSettingsAutofillPage) {
293 SetupSettingsAutofillPageTest(browser()->profile(),
294 "\xD7\x9E\xD7\xA9\xD7\x94",
295 "\xD7\x91",
296 "\xD7\x9B\xD7\x94\xD7\x9F",
297 "moshe.b.cohen@biditest.com",
298 "\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x20"
299 "\xD7\x91\xD7\xA2\xD7\x9E",
300 "\xD7\x93\xD7\xA8\xD7\x9A\x20\xD7\x9E\xD7\xA0"
301 "\xD7\x97\xD7\x9D\x20\xD7\x91\xD7\x92\xD7"
302 "\x99\xD7\x9F\x20\x32\x33",
303 "\xD7\xA7\xD7\x95\xD7\x9E\xD7\x94\x20\x32\x36",
304 "\xD7\xAA\xD7\x9C\x20\xD7\x90\xD7\x91\xD7\x99"
305 "\xD7\x91",
307 "66183",
308 "\xD7\x99\xD7\xA9\xD7\xA8\xD7\x90\xD7\x9C",
309 "0000");
310 std::string url(chrome::kChromeUISettingsFrameURL);
311 url += std::string(chrome::kAutofillSubPage);
312 RunBidiCheckerOnPage(url);
315 // http://crbug.com/94642
316 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
317 DISABLED_TestSettingsAutofillPage) {
318 SetupSettingsAutofillPageTest(browser()->profile(),
319 "Milton",
320 "C.",
321 "Waddams",
322 "red.swingline@initech.com",
323 "Initech",
324 "4120 Freidrich Lane",
325 "Basement",
326 "Austin",
327 "Texas",
328 "78744",
329 "United States",
330 "5125551234");
331 std::string url(chrome::kChromeUISettingsFrameURL);
332 url += std::string(chrome::kAutofillSubPage);
333 RunBidiCheckerOnPage(url);
336 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
337 TestSettingsClearBrowserDataPage) {
338 std::string url(chrome::kChromeUISettingsFrameURL);
339 url += std::string(chrome::kClearBrowserDataSubPage);
340 RunBidiCheckerOnPage(url);
343 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
344 TestSettingsClearBrowserDataPage) {
345 std::string url(chrome::kChromeUISettingsFrameURL);
346 url += std::string(chrome::kClearBrowserDataSubPage);
347 RunBidiCheckerOnPage(url);
350 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
351 TestSettingsContentSettingsPage) {
352 std::string url(chrome::kChromeUISettingsFrameURL);
353 url += std::string(chrome::kContentSettingsSubPage);
354 RunBidiCheckerOnPage(url);
357 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
358 TestSettingsContentSettingsPage) {
359 std::string url(chrome::kChromeUISettingsFrameURL);
360 url += std::string(chrome::kContentSettingsSubPage);
361 RunBidiCheckerOnPage(url);
364 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
365 TestSettingsContentSettingsExceptionsPage) {
366 std::string url(chrome::kChromeUISettingsFrameURL);
367 url += std::string(chrome::kContentSettingsExceptionsSubPage);
368 RunBidiCheckerOnPage(url);
371 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
372 TestSettingsContentSettingsExceptionsPage) {
373 std::string url(chrome::kChromeUISettingsFrameURL);
374 url += std::string(chrome::kContentSettingsExceptionsSubPage);
375 RunBidiCheckerOnPage(url);
378 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
379 TestSettingsLanguageOptionsPage) {
380 std::string url(chrome::kChromeUISettingsFrameURL);
381 url += std::string(chrome::kLanguageOptionsSubPage);
382 RunBidiCheckerOnPage(url);
385 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
386 TestSettingsLanguageOptionsPage) {
387 std::string url(chrome::kChromeUISettingsFrameURL);
388 url += std::string(chrome::kLanguageOptionsSubPage);
389 RunBidiCheckerOnPage(url);
392 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
393 TestSettingsSearchEnginesOptionsPage) {
394 std::string url(chrome::kChromeUISettingsFrameURL);
395 url += std::string(chrome::kSearchEnginesSubPage);
396 RunBidiCheckerOnPage(url);
399 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
400 TestSettingsSearchEnginesOptionsPage) {
401 std::string url(chrome::kChromeUISettingsFrameURL);
402 url += std::string(chrome::kSearchEnginesSubPage);
403 RunBidiCheckerOnPage(url);
406 //===================================
407 // chrome://settings-frame/startup
408 //===================================
410 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
411 TestSettingsFrameStartup) {
412 std::string url(chrome::kChromeUISettingsFrameURL);
413 url += "startup";
414 RunBidiCheckerOnPage(url);
417 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
418 TestSettingsFrameStartup) {
419 std::string url(chrome::kChromeUISettingsFrameURL);
420 url += "startup";
421 RunBidiCheckerOnPage(url);
424 //===================================
425 // chrome://settings-frame/importData
426 //===================================
428 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
429 TestSettingsFrameImportData) {
430 std::string url(chrome::kChromeUISettingsFrameURL);
431 url += chrome::kImportDataSubPage;
432 RunBidiCheckerOnPage(url);
435 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
436 TestSettingsFrameImportData) {
437 std::string url(chrome::kChromeUISettingsFrameURL);
438 url += chrome::kImportDataSubPage;
439 RunBidiCheckerOnPage(url);
442 //========================================
443 // chrome://settings-frame/manageProfile
444 //========================================
446 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
447 TestSettingsFrameMangageProfile) {
448 std::string url(chrome::kChromeUISettingsFrameURL);
449 url += chrome::kManageProfileSubPage;
450 RunBidiCheckerOnPage(url);
453 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
454 TestSettingsFrameMangageProfile) {
455 std::string url(chrome::kChromeUISettingsFrameURL);
456 url += chrome::kManageProfileSubPage;
457 RunBidiCheckerOnPage(url);
460 //===================================================
461 // chrome://settings-frame/contentExceptions#cookies
462 //===================================================
464 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
465 TestSettingsFrameContentExceptionsCookies) {
466 std::string url(chrome::kChromeUISettingsFrameURL);
467 url += chrome::kContentSettingsExceptionsSubPage;
468 url += "#cookies";
469 RunBidiCheckerOnPage(url);
472 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
473 TestSettingsFrameContentExceptionsCookies) {
474 std::string url(chrome::kChromeUISettingsFrameURL);
475 url += chrome::kContentSettingsExceptionsSubPage;
476 url += "#cookies";
477 RunBidiCheckerOnPage(url);
480 //===================================================
481 // chrome://settings-frame/contentExceptions#images
482 //===================================================
484 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
485 TestSettingsFrameContentExceptionsImages) {
486 std::string url(chrome::kChromeUISettingsFrameURL);
487 url += chrome::kContentSettingsExceptionsSubPage;
488 url += "#images";
489 RunBidiCheckerOnPage(url);
492 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
493 TestSettingsFrameContentExceptionsImages) {
494 std::string url(chrome::kChromeUISettingsFrameURL);
495 url += chrome::kContentSettingsExceptionsSubPage;
496 url += "#images";
497 RunBidiCheckerOnPage(url);
500 //======================================================
501 // chrome://settings-frame/contentExceptions#javascript
502 //======================================================
504 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
505 TestSettingsFrameContentExceptionsJavascript) {
506 std::string url(chrome::kChromeUISettingsFrameURL);
507 url += chrome::kContentSettingsExceptionsSubPage;
508 url += "#javascript";
509 RunBidiCheckerOnPage(url);
512 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
513 TestSettingsFrameContentExceptionsJavascript) {
514 std::string url(chrome::kChromeUISettingsFrameURL);
515 url += chrome::kContentSettingsExceptionsSubPage;
516 url += "#javascript";
517 RunBidiCheckerOnPage(url);
520 //===================================================
521 // chrome://settings-frame/contentExceptions#plugins
522 //===================================================
524 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
525 TestSettingsFrameContentExceptionsPlugins) {
526 std::string url(chrome::kChromeUISettingsFrameURL);
527 url += chrome::kContentSettingsExceptionsSubPage;
528 url += "#plugins";
529 RunBidiCheckerOnPage(url);
532 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
533 TestSettingsFrameContentExceptionsPlugins) {
534 std::string url(chrome::kChromeUISettingsFrameURL);
535 url += chrome::kContentSettingsExceptionsSubPage;
536 url += "#plugins";
537 RunBidiCheckerOnPage(url);
540 //===================================================
541 // chrome://settings-frame/contentExceptions#popups
542 //===================================================
544 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
545 TestSettingsFrameContentExceptionsPopups) {
546 std::string url(chrome::kChromeUISettingsFrameURL);
547 url += chrome::kContentSettingsExceptionsSubPage;
548 url += "#popups";
549 RunBidiCheckerOnPage(url);
552 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
553 TestSettingsFrameContentExceptionsPopups) {
554 std::string url(chrome::kChromeUISettingsFrameURL);
555 url += chrome::kContentSettingsExceptionsSubPage;
556 url += "#popups";
557 RunBidiCheckerOnPage(url);
560 //===================================================
561 // chrome://settings-frame/contentExceptions#location
562 //===================================================
564 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
565 TestSettingsFrameContentExceptionsLocation) {
566 std::string url(chrome::kChromeUISettingsFrameURL);
567 url += chrome::kContentSettingsExceptionsSubPage;
568 url += "#location";
569 RunBidiCheckerOnPage(url);
572 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
573 TestSettingsFrameContentExceptionsLocation) {
574 std::string url(chrome::kChromeUISettingsFrameURL);
575 url += chrome::kContentSettingsExceptionsSubPage;
576 url += "#location";
577 RunBidiCheckerOnPage(url);
580 //===================================================
581 // chrome://settings-frame/contentExceptions#notifications
582 //===================================================
584 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
585 TestSettingsFrameContentExceptionsNotifications) {
586 std::string url(chrome::kChromeUISettingsFrameURL);
587 url += chrome::kContentSettingsExceptionsSubPage;
588 url += "#notifications";
589 RunBidiCheckerOnPage(url);
592 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
593 TestSettingsFrameContentExceptionsNotifications) {
594 std::string url(chrome::kChromeUISettingsFrameURL);
595 url += chrome::kContentSettingsExceptionsSubPage;
596 url += "#notifications";
597 RunBidiCheckerOnPage(url);
600 //===================================================
601 // chrome://settings-frame/contentExceptions#mouselock
602 //===================================================
604 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
605 TestSettingsFrameContentExceptionsMouseLock) {
606 std::string url(chrome::kChromeUISettingsFrameURL);
607 url += chrome::kContentSettingsExceptionsSubPage;
608 url += "#mouselock";
609 RunBidiCheckerOnPage(url);
612 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
613 TestSettingsFrameContentExceptionsMouseLock) {
614 std::string url(chrome::kChromeUISettingsFrameURL);
615 url += chrome::kContentSettingsExceptionsSubPage;
616 url += "#mouselock";
617 RunBidiCheckerOnPage(url);
620 //========================================
621 // chrome://settings-frame/handlers
622 //========================================
624 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
625 TestSettingsFrameHandler) {
626 std::string url(chrome::kChromeUISettingsFrameURL);
627 url += chrome::kHandlerSettingsSubPage;
628 RunBidiCheckerOnPage(url);
631 // Fails on chromeos. http://crbug.com/125367
632 #if defined(OS_CHROMEOS)
633 #define MAYBE_TestSettingsFrameHandler DISABLED_TestSettingsFrameHandler
634 #else
635 #define MAYBE_TestSettingsFrameHandler TestSettingsFrameHandler
636 #endif
638 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
639 MAYBE_TestSettingsFrameHandler) {
640 std::string url(chrome::kChromeUISettingsFrameURL);
641 url += chrome::kHandlerSettingsSubPage;
642 RunBidiCheckerOnPage(url);
645 //========================================
646 // chrome://settings-frame/cookies
647 //========================================
649 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
650 TestSettingsFrameCookies) {
651 std::string url(chrome::kChromeUISettingsFrameURL);
652 url += "cookies";
653 RunBidiCheckerOnPage(url);
656 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
657 TestSettingsFrameCookies) {
658 std::string url(chrome::kChromeUISettingsFrameURL);
659 url += "cookies";
660 RunBidiCheckerOnPage(url);
663 //========================================
664 // chrome://settings-frame/passwords
665 //========================================
667 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
668 TestSettingsFramePasswords) {
669 std::string url(chrome::kChromeUISettingsFrameURL);
670 url += "passwords";
671 RunBidiCheckerOnPage(url);
674 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
675 TestSettingsFramePasswords) {
676 std::string url(chrome::kChromeUISettingsFrameURL);
677 url += "passwords";
678 RunBidiCheckerOnPage(url);
681 //========================================
682 // chrome://settings-frame/fonts
683 //========================================
685 #if defined(OS_MACOSX)
686 #define MAYBE_TestSettingsFrameFonts DISABLED_TestSettingsFrameFonts
687 #else
688 #define MAYBE_TestSettingsFrameFonts TestSettingsFrameFonts
689 #endif
690 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
691 MAYBE_TestSettingsFrameFonts) {
692 std::string url(chrome::kChromeUISettingsFrameURL);
693 url += "fonts";
694 RunBidiCheckerOnPage(url);
697 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
698 TestSettingsFrameFonts) {
699 std::string url(chrome::kChromeUISettingsFrameURL);
700 url += "fonts";
701 RunBidiCheckerOnPage(url);
704 // Test other uber iframes.
706 //==============================
707 // chrome://extensions-frame
708 //==============================
710 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
711 TestExtensionsFrame) {
712 RunBidiCheckerOnPage(chrome::kChromeUIExtensionsFrameURL);
715 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
716 TestExtensionsFrame) {
717 RunBidiCheckerOnPage(chrome::kChromeUIExtensionsFrameURL);
720 //==============================
721 // chrome://help-frame
722 //==============================
724 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR, TestHelpFrame) {
725 RunBidiCheckerOnPage(chrome::kChromeUIHelpFrameURL);
728 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL, TestHelpFrame) {
729 RunBidiCheckerOnPage(chrome::kChromeUIHelpFrameURL);
732 //==============================
733 // chrome://history-frame
734 //==============================
736 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestLTR,
737 TestHistoryFrame) {
738 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
741 IN_PROC_BROWSER_TEST_F(DISABLED_WebUIBidiCheckerBrowserTestRTL,
742 TestHistoryFrame) {
743 RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);