This source file includes following definitions.
- WebUIBidiCheckerLibraryJSPath
- ReloadLocaleResourcesOnIOThread
- ReloadLocaleResources
- SetUp
- TearDown
- SetUpInProcessBrowserTestFixture
- RunBidiCheckerOnPage
- RunBidiCheckerOnPage
- RunBidiCheckerOnPage
- SetUpOnMainThread
- CleanUpOnMainThread
- SetupHistoryPageTest
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- SetupSettingsAutofillPageTest
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "chrome/browser/ui/webui/bidi_checker_web_ui_test.h"
#include "base/base_paths.h"
#include "base/i18n/rtl.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "base/values.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/history/history_service.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/resource/resource_bundle.h"
#if defined(TOOLKIT_GTK)
#include <gtk/gtk.h>
#endif
using autofill::AutofillProfile;
using autofill::PersonalDataManager;
static const base::FilePath::CharType* kWebUIBidiCheckerLibraryJS =
FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js");
namespace {
base::FilePath WebUIBidiCheckerLibraryJSPath() {
base::FilePath src_root;
if (!PathService::Get(base::DIR_SOURCE_ROOT, &src_root))
LOG(ERROR) << "Couldn't find source root";
return src_root.Append(kWebUIBidiCheckerLibraryJS);
}
void ReloadLocaleResourcesOnIOThread(const std::string& new_locale) {
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)) {
LOG(ERROR)
<< content::BrowserThread::IO
<< " != " << base::PlatformThread::CurrentId();
NOTREACHED();
}
std::string locale;
{
base::ThreadRestrictions::ScopedAllowIO allow_io_scope;
locale.assign(
ResourceBundle::GetSharedInstance().ReloadLocaleResources(new_locale));
}
ASSERT_FALSE(locale.empty());
}
void ReloadLocaleResources(const std::string& new_locale) {
content::BrowserThread::PostTaskAndReply(
content::BrowserThread::IO,
FROM_HERE,
base::Bind(&ReloadLocaleResourcesOnIOThread, base::ConstRef(new_locale)),
base::MessageLoop::QuitClosure());
content::RunMessageLoop();
}
}
static const base::FilePath::CharType* kBidiCheckerTestsJS =
FILE_PATH_LITERAL("bidichecker_tests.js");
void WebUIBidiCheckerBrowserTest::SetUp() {
argv_ = CommandLine::ForCurrentProcess()->GetArgs();
}
void WebUIBidiCheckerBrowserTest::TearDown() {
CommandLine::ForCurrentProcess()->InitFromArgv(argv_);
}
WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {}
WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {}
void WebUIBidiCheckerBrowserTest::SetUpInProcessBrowserTestFixture() {
WebUIBrowserTest::SetUpInProcessBrowserTestFixture();
WebUIBrowserTest::AddLibrary(WebUIBidiCheckerLibraryJSPath());
WebUIBrowserTest::AddLibrary(base::FilePath(kBidiCheckerTestsJS));
}
void WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(
const std::string& page_url, bool is_rtl) {
ui_test_utils::NavigateToURL(browser(), GURL(page_url));
ASSERT_TRUE(RunJavascriptTest("runBidiChecker",
base::Value::CreateStringValue(page_url),
base::Value::CreateBooleanValue(is_rtl)));
}
void WebUIBidiCheckerBrowserTestLTR::RunBidiCheckerOnPage(
const std::string& page_url) {
WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(page_url, false);
}
void WebUIBidiCheckerBrowserTestRTL::RunBidiCheckerOnPage(
const std::string& page_url) {
WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(page_url, true);
}
void WebUIBidiCheckerBrowserTestRTL::SetUpOnMainThread() {
WebUIBidiCheckerBrowserTest::SetUpOnMainThread();
base::FilePath pak_path;
app_locale_ = base::i18n::GetConfiguredLocale();
ASSERT_TRUE(PathService::Get(base::FILE_MODULE, &pak_path));
pak_path = pak_path.DirName();
pak_path = pak_path.AppendASCII("pseudo_locales");
pak_path = pak_path.AppendASCII("fake-bidi");
pak_path = pak_path.ReplaceExtension(FILE_PATH_LITERAL("pak"));
ResourceBundle::GetSharedInstance().OverrideLocalePakForTest(pak_path);
ReloadLocaleResources("he");
base::i18n::SetICUDefaultLocale("he");
#if defined(OS_POSIX) && defined(TOOLKIT_GTK)
gtk_widget_set_default_direction(GTK_TEXT_DIR_RTL);
#endif
}
void WebUIBidiCheckerBrowserTestRTL::CleanUpOnMainThread() {
WebUIBidiCheckerBrowserTest::CleanUpOnMainThread();
#if defined(OS_POSIX) && defined(TOOLKIT_GTK)
gtk_widget_set_default_direction(GTK_TEXT_DIR_LTR);
#endif
base::i18n::SetICUDefaultLocale(app_locale_);
ResourceBundle::GetSharedInstance().OverrideLocalePakForTest(
base::FilePath());
ReloadLocaleResources(app_locale_);
}
static void SetupHistoryPageTest(Browser* browser,
const std::string& page_url,
const std::string& page_title) {
HistoryService* history_service = HistoryServiceFactory::GetForProfile(
browser->profile(), Profile::IMPLICIT_ACCESS);
const GURL history_url = GURL(page_url);
history_service->AddPage(
history_url, base::Time::Now(), history::SOURCE_BROWSED);
history_service->SetPageTitle(history_url, base::UTF8ToUTF16(page_title));
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestHistoryPage) {
SetupHistoryPageTest(browser(),
"http://www.ynet.co.il",
"\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x21");
RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestHistoryPage) {
SetupHistoryPageTest(browser(), "http://www.google.com", "Google");
RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestAboutPage) {
RunBidiCheckerOnPage(chrome::kChromeUIAboutURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestCrashesPage) {
RunBidiCheckerOnPage(chrome::kChromeUICrashesURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestCrashesPage) {
RunBidiCheckerOnPage(chrome::kChromeUICrashesURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestDownloadsPageLTR) {
RunBidiCheckerOnPage(chrome::kChromeUIDownloadsURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestDownloadsPageRTL) {
RunBidiCheckerOnPage(chrome::kChromeUIDownloadsURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestNewTabPage) {
RunBidiCheckerOnPage(chrome::kChromeUINewTabURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestNewTabPage) {
RunBidiCheckerOnPage(chrome::kChromeUINewTabURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestPluginsPage) {
RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestPluginsPage) {
RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestSettingsPage) {
RunBidiCheckerOnPage(chrome::kChromeUISettingsFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestSettingsPage) {
RunBidiCheckerOnPage(chrome::kChromeUISettingsFrameURL);
}
static void SetupSettingsAutofillPageTest(Profile* profile,
const char* first_name,
const char* middle_name,
const char* last_name,
const char* email,
const char* company,
const char* address1,
const char* address2,
const char* city,
const char* state,
const char* zipcode,
const char* country,
const char* phone) {
autofill::test::DisableSystemServices(profile->GetPrefs());
AutofillProfile autofill_profile;
autofill::test::SetProfileInfo(&autofill_profile,
first_name,
middle_name,
last_name,
email,
company,
address1,
address2,
city,
state,
zipcode,
country,
phone);
PersonalDataManager* personal_data_manager =
autofill::PersonalDataManagerFactory::GetForProfile(profile);
ASSERT_TRUE(personal_data_manager);
personal_data_manager->AddProfile(autofill_profile);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
DISABLED_TestSettingsAutofillPage) {
SetupSettingsAutofillPageTest(browser()->profile(),
"\xD7\x9E\xD7\xA9\xD7\x94",
"\xD7\x91",
"\xD7\x9B\xD7\x94\xD7\x9F",
"moshe.b.cohen@biditest.com",
"\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x20"
"\xD7\x91\xD7\xA2\xD7\x9E",
"\xD7\x93\xD7\xA8\xD7\x9A\x20\xD7\x9E\xD7\xA0"
"\xD7\x97\xD7\x9D\x20\xD7\x91\xD7\x92\xD7"
"\x99\xD7\x9F\x20\x32\x33",
"\xD7\xA7\xD7\x95\xD7\x9E\xD7\x94\x20\x32\x36",
"\xD7\xAA\xD7\x9C\x20\xD7\x90\xD7\x91\xD7\x99"
"\xD7\x91",
"",
"66183",
"\xD7\x99\xD7\xA9\xD7\xA8\xD7\x90\xD7\x9C",
"0000");
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kAutofillSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
DISABLED_TestSettingsAutofillPage) {
SetupSettingsAutofillPageTest(browser()->profile(),
"Milton",
"C.",
"Waddams",
"red.swingline@initech.com",
"Initech",
"4120 Freidrich Lane",
"Basement",
"Austin",
"Texas",
"78744",
"United States",
"5125551234");
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kAutofillSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsClearBrowserDataPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kClearBrowserDataSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsClearBrowserDataPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kClearBrowserDataSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsContentSettingsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kContentSettingsSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsContentSettingsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kContentSettingsSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsContentSettingsExceptionsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kContentSettingsExceptionsSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsContentSettingsExceptionsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kContentSettingsExceptionsSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsLanguageOptionsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kLanguageOptionsSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsLanguageOptionsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kLanguageOptionsSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsSearchEnginesOptionsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kSearchEnginesSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsSearchEnginesOptionsPage) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += std::string(chrome::kSearchEnginesSubPage);
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameStartup) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "startup";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameStartup) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "startup";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameImportData) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kImportDataSubPage;
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameImportData) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kImportDataSubPage;
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameMangageProfile) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kManageProfileSubPage;
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameMangageProfile) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kManageProfileSubPage;
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsCookies) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#cookies";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsCookies) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#cookies";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsImages) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#images";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsImages) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#images";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsJavascript) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#javascript";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsJavascript) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#javascript";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsPlugins) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#plugins";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsPlugins) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#plugins";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsPopups) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#popups";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsPopups) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#popups";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsLocation) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#location";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsLocation) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#location";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsNotifications) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#notifications";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsNotifications) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#notifications";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameContentExceptionsMouseLock) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#mouselock";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameContentExceptionsMouseLock) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kContentSettingsExceptionsSubPage;
url += "#mouselock";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameHandler) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kHandlerSettingsSubPage;
RunBidiCheckerOnPage(url);
}
#if defined(OS_CHROMEOS)
#define MAYBE_TestSettingsFrameHandler DISABLED_TestSettingsFrameHandler
#else
#define MAYBE_TestSettingsFrameHandler TestSettingsFrameHandler
#endif
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
MAYBE_TestSettingsFrameHandler) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += chrome::kHandlerSettingsSubPage;
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFrameCookies) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "cookies";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameCookies) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "cookies";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
TestSettingsFramePasswords) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "passwords";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFramePasswords) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "passwords";
RunBidiCheckerOnPage(url);
}
#if defined(OS_MACOSX)
#define MAYBE_TestSettingsFrameFonts DISABLED_TestSettingsFrameFonts
#else
#define MAYBE_TestSettingsFrameFonts TestSettingsFrameFonts
#endif
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR,
MAYBE_TestSettingsFrameFonts) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "fonts";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestSettingsFrameFonts) {
std::string url(chrome::kChromeUISettingsFrameURL);
url += "fonts";
RunBidiCheckerOnPage(url);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestExtensionsFrame) {
RunBidiCheckerOnPage(chrome::kChromeUIExtensionsFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL,
TestExtensionsFrame) {
RunBidiCheckerOnPage(chrome::kChromeUIExtensionsFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHelpFrame) {
RunBidiCheckerOnPage(chrome::kChromeUIHelpFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHelpFrame) {
RunBidiCheckerOnPage(chrome::kChromeUIHelpFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestLTR, TestHistoryFrame) {
RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
}
IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTestRTL, TestHistoryFrame) {
RunBidiCheckerOnPage(chrome::kChromeUIHistoryFrameURL);
}