| Index: chrome/browser/ui/search/instant_extended_interactive_uitest.cc
|
| diff --git a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
|
| index 0a3f5558b1bce86af46f87e2c678276412c5b98d..3f2d26dd9293de427b8ee4c455ad46b0ad411ac9 100644
|
| --- a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
|
| +++ b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
|
| @@ -109,7 +109,8 @@ class InstantExtendedTest : public InProcessBrowserTest,
|
| first_most_visited_item_id_(0),
|
| on_native_suggestions_calls_(0),
|
| on_change_calls_(0),
|
| - submit_count_(0) {
|
| + submit_count_(0),
|
| + on_esc_key_press_event_calls_(0) {
|
| }
|
| protected:
|
| virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
|
| @@ -160,7 +161,9 @@ class InstantExtendedTest : public InProcessBrowserTest,
|
| GetIntFromJS(contents, "submitCount",
|
| &submit_count_) &&
|
| GetStringFromJS(contents, "apiHandle.value",
|
| - &query_value_);
|
| + &query_value_) &&
|
| + GetIntFromJS(contents, "onEscKeyPressedCalls",
|
| + &on_esc_key_press_event_calls_);
|
| }
|
|
|
| TemplateURL* GetDefaultSearchProviderTemplateURL() {
|
| @@ -210,6 +213,7 @@ class InstantExtendedTest : public InProcessBrowserTest,
|
| int on_native_suggestions_calls_;
|
| int on_change_calls_;
|
| int submit_count_;
|
| + int on_esc_key_press_event_calls_;
|
| std::string query_value_;
|
| };
|
|
|
| @@ -1948,8 +1952,7 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedTest, EmptyAutocompleteResults) {
|
| }
|
|
|
| // Test that hitting Esc to clear the omnibox works. http://crbug.com/231744.
|
| -// TODO(sreeram): reenable once ESC bug is actually fixed.
|
| -IN_PROC_BROWSER_TEST_F(InstantExtendedTest, DISABLED_EscapeClearsOmnibox) {
|
| +IN_PROC_BROWSER_TEST_F(InstantExtendedTest, EscapeClearsOmnibox) {
|
| ASSERT_NO_FATAL_FAILURE(SetupInstant(browser()));
|
| FocusOmniboxAndWaitForInstantOverlayAndNTPSupport();
|
|
|
| @@ -1986,6 +1989,7 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedTest, DISABLED_EscapeClearsOmnibox) {
|
| EXPECT_TRUE(UpdateSearchState(contents));
|
| EXPECT_LT(0, on_change_calls_);
|
| EXPECT_EQ(0, submit_count_);
|
| + EXPECT_LT(0, on_esc_key_press_event_calls_);
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(InstantExtendedTest, OnDefaultSearchProviderChanged) {
|
|
|