Index: chrome/browser/extensions/api/automation/automation_apitest.cc |
diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc |
index 5d3bd57843e54e7182042964e8205b4254bf9025..8a3dac103cbf3e9dd2f2dd2c5a6c2e379e00afd3 100644 |
--- a/chrome/browser/extensions/api/automation/automation_apitest.cc |
+++ b/chrome/browser/extensions/api/automation/automation_apitest.cc |
@@ -57,12 +57,6 @@ class AutomationApiTest : public ExtensionApiTest { |
host_resolver()->AddRule("*", embedded_test_server()->base_url().host()); |
} |
- void LoadPage() { |
- StartEmbeddedTestServer(); |
- const GURL url = GetURLForPath(kDomain, "/index.html"); |
- ui_test_utils::NavigateToURL(browser(), url); |
- } |
- |
public: |
virtual void SetUpInProcessBrowserTestFixture() override { |
ExtensionApiTest::SetUpInProcessBrowserTestFixture(); |
@@ -70,7 +64,9 @@ class AutomationApiTest : public ExtensionApiTest { |
}; |
IN_PROC_BROWSER_TEST_F(AutomationApiTest, TestRendererAccessibilityEnabled) { |
- LoadPage(); |
+ StartEmbeddedTestServer(); |
+ const GURL url = GetURLForPath(kDomain, "/index.html"); |
+ ui_test_utils::NavigateToURL(browser(), url); |
ASSERT_EQ(1, browser()->tab_strip_model()->count()); |
content::WebContents* const tab = |
@@ -177,6 +173,13 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, CloseTab) { |
<< message_; |
} |
+IN_PROC_BROWSER_TEST_F(AutomationApiTest, QuerySelector) { |
+ StartEmbeddedTestServer(); |
+ ASSERT_TRUE( |
+ RunExtensionSubtest("automation/tests/tabs", "queryselector.html")) |
+ << message_; |
+} |
+ |
static const int kPid = 1; |
static const int kTab0Rid = 1; |
static const int kTab1Rid = 2; |