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

Unified Diff: chrome/renderer/translate/translate_helper_browsertest.cc

Issue 2919343007: Check |errorCode| of translate.js and notify to Browser (Closed)
Patch Set: Added test cases to check for translate error types and a minor refactoring. Created 3 years, 6 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
Index: chrome/renderer/translate/translate_helper_browsertest.cc
diff --git a/chrome/renderer/translate/translate_helper_browsertest.cc b/chrome/renderer/translate/translate_helper_browsertest.cc
index 679b62803a798fb432ee3297c481dec8d4eeb2ba..814fef444acd7451ca590efa7188da97720eb2c9 100644
--- a/chrome/renderer/translate/translate_helper_browsertest.cc
+++ b/chrome/renderer/translate/translate_helper_browsertest.cc
@@ -189,7 +189,7 @@ TEST_F(TranslateHelperBrowserTest, TranslateLibNeverReady) {
translate::TranslateErrors::Type error;
ASSERT_TRUE(translate_helper_->GetPageTranslatedResult(NULL, NULL, &error));
- EXPECT_EQ(translate::TranslateErrors::INITIALIZATION_ERROR, error);
+ EXPECT_EQ(translate::TranslateErrors::TRANSLATION_TIMEOUT, error);
}
// Tests that the browser gets notified of the translation success when the

Powered by Google App Engine
This is Rietveld 408576698