Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4967)

Unified Diff: chrome/browser/ui/webui/BidiCheckerWebUITest.cc

Issue 7749005: Renaming BidiCheckerWebUITest.cc/h to bidi_checker_web_ui_test.cc/h (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/BidiCheckerWebUITest.h ('k') | chrome/browser/ui/webui/bidi_checker_web_ui_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/BidiCheckerWebUITest.cc
diff --git a/chrome/browser/ui/webui/BidiCheckerWebUITest.cc b/chrome/browser/ui/webui/BidiCheckerWebUITest.cc
deleted file mode 100644
index 79308ce2b95fa493b17d63597b7f36e254194b72..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/BidiCheckerWebUITest.cc
+++ /dev/null
@@ -1,130 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/BidiCheckerWebUITest.h"
-
-#include "base/base_paths.h"
-#include "base/path_service.h"
-#include "base/utf_string_conversions.h"
-#include "base/values.h"
-#include "chrome/browser/autofill/autofill_common_test.h"
-#include "chrome/browser/autofill/autofill_profile.h"
-#include "chrome/browser/autofill/personal_data_manager.h"
-#include "chrome/browser/history/history.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"
-
-static const FilePath::CharType* kWebUIBidiCheckerLibraryJS =
- FILE_PATH_LITERAL("third_party/bidichecker/bidichecker_packaged.js");
-
-namespace {
-FilePath WebUIBidiCheckerLibraryJSPath() {
- FilePath src_root;
- if (!PathService::Get(base::DIR_SOURCE_ROOT, &src_root))
- LOG(ERROR) << "Couldn't find source root";
- return src_root.Append(kWebUIBidiCheckerLibraryJS);
-}
-}
-
-static const FilePath::CharType* kBidiCheckerTestsJS =
- FILE_PATH_LITERAL("bidichecker_tests.js");
-
-WebUIBidiCheckerBrowserTest::~WebUIBidiCheckerBrowserTest() {}
-
-WebUIBidiCheckerBrowserTest::WebUIBidiCheckerBrowserTest() {}
-
-void WebUIBidiCheckerBrowserTest::SetUpInProcessBrowserTestFixture() {
- WebUIBrowserTest::SetUpInProcessBrowserTestFixture();
- WebUIBrowserTest::AddLibrary(WebUIBidiCheckerLibraryJSPath());
- WebUIBrowserTest::AddLibrary(FilePath(kBidiCheckerTestsJS));
-}
-
-void WebUIBidiCheckerBrowserTest::RunBidiCheckerOnPage(const char pageURL[],
- bool isRTL) {
- ui_test_utils::NavigateToURL(browser(), GURL(pageURL));
- ASSERT_TRUE(RunJavascriptTest("runBidiChecker",
- Value::CreateStringValue(pageURL),
- Value::CreateBooleanValue(isRTL)));
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestMainHistoryPageLTR) {
- HistoryService* history_service =
- browser()->profile()->GetHistoryService(Profile::IMPLICIT_ACCESS);
- const GURL history_url = GURL("http://www.ynet.co.il");
- history_service->AddPage(history_url, history::SOURCE_BROWSED);
- string16 title;
- ASSERT_TRUE(UTF8ToUTF16("\xD7\x91\xD7\x93\xD7\x99\xD7\xA7\xD7\x94\x21",
- 12,
- &title));
- history_service->SetPageTitle(history_url, title);
- RunBidiCheckerOnPage(chrome::kChromeUIHistoryURL, false);
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestAboutPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUIAboutURL, false);\
-}
-
-// Times out. http://code.google.com/p/chromium/issues/detail?id=82896
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest,
- DISABLED_TestBookmarksPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUIBookmarksURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestBugReportPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUIBugReportURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestCrashesPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUICrashesURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestDownloadsPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUIDownloadsURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestNewTabPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUINewTabURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestPluginsPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUIPluginsURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest, TestSettingsPageLTR) {\
- RunBidiCheckerOnPage(chrome::kChromeUISettingsURL, false);\
-}
-
-IN_PROC_BROWSER_TEST_F(WebUIBidiCheckerBrowserTest,
- TestSettingsAutofillPageLTR) {
- std::string url(chrome::kChromeUISettingsURL);
- url += std::string(chrome::kAutofillSubPage);
-
- autofill_test::DisableSystemServices(browser()->profile());
- AutofillProfile profile;
- autofill_test::SetProfileInfo(
- &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",
- "0000");
-
- PersonalDataManager* personal_data_manager =
- browser()->profile()->GetPersonalDataManager();
- ASSERT_TRUE(personal_data_manager);
-
- personal_data_manager->AddProfile(profile);
-
- RunBidiCheckerOnPage(url.c_str(), false);
-}
« no previous file with comments | « chrome/browser/ui/webui/BidiCheckerWebUITest.h ('k') | chrome/browser/ui/webui/bidi_checker_web_ui_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698