Revert 110861 - Adding more bidichecker tests and doing some minor cleanups.

These tests are constantly failing on Linux ChromeOS bot (chromium.chromiumos waterfall): TestBugReportPage, TestSettingsLanguageOptionsPage.

BUG=NONE
TEST=NONE

Review URL: http://codereview.chromium.org/8228009

TBR=jeremy@chromium.org
Review URL: http://codereview.chromium.org/8606009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110899 0039d316-1c4b-4281-b951-d872f2087c98
parent 17284478
...@@ -15,29 +15,27 @@ class WebUIBidiCheckerBrowserTest : public WebUIBrowserTest { ...@@ -15,29 +15,27 @@ class WebUIBidiCheckerBrowserTest : public WebUIBrowserTest {
public: public:
virtual ~WebUIBidiCheckerBrowserTest(); virtual ~WebUIBidiCheckerBrowserTest();
protected:
WebUIBidiCheckerBrowserTest();
// Runs the Bidi Checker on the given page URL. |isRTL| should be true when // Runs the Bidi Checker on the given page URL. |isRTL| should be true when
// the active page locale is RTL. // the active page locale is RTL.
void RunBidiCheckerOnPage(const char pageURL[], bool isRTL); void RunBidiCheckerOnPage(const char pageURL[], bool isRTL);
protected:
WebUIBidiCheckerBrowserTest();
// Setup test path. // Setup test path.
virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
}; };
// Base class for BidiChecker-based tests that run with an LTR UI.
class WebUIBidiCheckerBrowserTestLTR : public WebUIBidiCheckerBrowserTest {
public:
void RunBidiCheckerOnPage(const char pageURL[]);
};
// Base class for BidiChecker-based tests that run with an RTL UI. // Base class for BidiChecker-based tests that run with an RTL UI.
class WebUIBidiCheckerBrowserTestRTL : public WebUIBidiCheckerBrowserTest { // Preloads the BidiChecker JS library for each test, as well as modifies the
// active language.
class WebUIBidiCheckerBrowserTestFakeBidi : public WebUIBidiCheckerBrowserTest {
public: public:
void RunBidiCheckerOnPage(const char pageURL[]); virtual ~WebUIBidiCheckerBrowserTestFakeBidi();
protected: protected:
WebUIBidiCheckerBrowserTestFakeBidi();
virtual void SetUpOnMainThread() OVERRIDE; virtual void SetUpOnMainThread() OVERRIDE;
virtual void CleanUpOnMainThread() OVERRIDE; virtual void CleanUpOnMainThread() OVERRIDE;
......
...@@ -20,12 +20,12 @@ function filtersForPage(pageName, isRTL) { ...@@ -20,12 +20,12 @@ function filtersForPage(pageName, isRTL) {
"chrome://history" : { "chrome://history" : {
// Filters for LTR UI // Filters for LTR UI
"LTR" : [ "LTR" : [
// BUG: http://crbug.com/80791 // BUG: http://code.google.com/p/chromium/issues/detail?id=80791
bidichecker.FilterFactory.atText("בדיקה") bidichecker.FilterFactory.atText("בדיקה")
], ],
// Filters for RTL UI // Filters for RTL UI
"RTL" : [ "RTL" : [
// BUG: http://crbug.com/80791 // BUG: http://code.google.com/p/chromium/issues/detail?id=80791
bidichecker.FilterFactory.atText("Google"), bidichecker.FilterFactory.atText("Google"),
bidichecker.FilterFactory.atText("www.google.com"), bidichecker.FilterFactory.atText("www.google.com"),
// The following two are probably false positives since we can't // The following two are probably false positives since we can't
...@@ -37,11 +37,11 @@ function filtersForPage(pageName, isRTL) { ...@@ -37,11 +37,11 @@ function filtersForPage(pageName, isRTL) {
}, },
"chrome://settings/autofill" : { "chrome://settings/autofill" : {
"LTR" : [ "LTR" : [
// BUG: http://crbug.com/82267 // BUG: http://code.google.com/p/chromium/issues/detail?id=82267
bidichecker.FilterFactory.atText("משה ב כהן, דרך מנחם בגין") bidichecker.FilterFactory.atText("משה ב כהן, דרך מנחם בגין")
], ],
"RTL" : [ "RTL" : [
// BUG: http://crbug.com/90322 // BUG: http://code.google.com/p/chromium/issues/detail?id=90322
bidichecker.FilterFactory.atText( bidichecker.FilterFactory.atText(
"Milton C. Waddams, 4120 Freidrich Lane") "Milton C. Waddams, 4120 Freidrich Lane")
] ]
...@@ -57,55 +57,10 @@ function filtersForPage(pageName, isRTL) { ...@@ -57,55 +57,10 @@ function filtersForPage(pageName, isRTL) {
}, },
"chrome://newtab" : { "chrome://newtab" : {
"RTL" : [ "RTL" : [
// BUG: http://crbug.com/93339 // BUG: http://code.google.com/p/chromium/issues/detail?id=93339
bidichecker.FilterFactory.atText("Chrome Web Store"), bidichecker.FilterFactory.atText("Chrome Web Store"),
bidichecker.FilterFactory.atText("File Manager") bidichecker.FilterFactory.atText("File Manager")
] ]
},
"chrome://bugreport#0?description=%D7%91%D7%93%D7%99%D7%A7%D7%94&issueType=1" : {
"LTR" : [
// BUG: http://crbug.com/90835
bidichecker.FilterFactory.atText("בדיקה")
]
},
"chrome://bugreport#0?description=test&issueType=1" : {
"RTL" : [
// BUG: http://crbug.com/90835
bidichecker.FilterFactory.atText("test")
]
},
"chrome://settings/browser" : {
"LTR" : [
// BUG: http://crbug.com/93702
bidichecker.FilterFactory.atText("חדשות תוכן ועדכונים - ידיעות אחרונות")
]
},
"chrome://settings/clearBrowserData" : {
"RTL" : [
// BUG: http://crbug.com/94070
bidichecker.FilterFactory.atText("Google Cloud Print")
]
},
"chrome://settings/content" : {
"RTL" : [
// BUG: http://crbug.com/94070
bidichecker.FilterFactory.atText("Google Cloud Print")
]
},
"chrome://settings/languages" : {
"RTL" : [
// BUG: http://crbug.com/94070
bidichecker.FilterFactory.atText("Google Cloud Print"),
bidichecker.FilterFactory.atText("Hebrew"),
bidichecker.FilterFactory.atText("English (United States"),
bidichecker.FilterFactory.atText("English")
]
},
"chrome://settings/contentExceptions" : {
"RTL" : [
// BUG: http://crbug.com/94070
bidichecker.FilterFactory.atText("Google Cloud Print")
]
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment