| 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 87ce614914bc193fe566c2efcfcfa41d3196ff2d..de7b21e3941f868027b27078df03c2fd4768a9c2 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 =
|
| @@ -172,6 +168,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;
|
|
|