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

Side by Side Diff: chrome/browser/extensions/api/automation/automation_apitest.cc

Issue 308003003: Allow requesting Automation tree by tabId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_internal_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_test_message_listener.h" 9 #include "chrome/browser/extensions/extension_test_message_listener.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ASSERT_FALSE(rwh->IsFullAccessibilityModeForTesting()); 85 ASSERT_FALSE(rwh->IsFullAccessibilityModeForTesting());
86 ASSERT_TRUE(rwh->IsTreeOnlyAccessibilityModeForTesting()); 86 ASSERT_TRUE(rwh->IsTreeOnlyAccessibilityModeForTesting());
87 } 87 }
88 88
89 IN_PROC_BROWSER_TEST_F(AutomationApiTest, SanityCheck) { 89 IN_PROC_BROWSER_TEST_F(AutomationApiTest, SanityCheck) {
90 StartEmbeddedTestServer(); 90 StartEmbeddedTestServer();
91 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "sanity_check.html")) 91 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "sanity_check.html"))
92 << message_; 92 << message_;
93 } 93 }
94 94
95 IN_PROC_BROWSER_TEST_F(AutomationApiTest, GetTreeByTabId) {
96 StartEmbeddedTestServer();
97 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "tab_id.html"))
98 << message_;
99 }
100
95 IN_PROC_BROWSER_TEST_F(AutomationApiTest, Events) { 101 IN_PROC_BROWSER_TEST_F(AutomationApiTest, Events) {
96 StartEmbeddedTestServer(); 102 StartEmbeddedTestServer();
97 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "events.html")) 103 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "events.html"))
98 << message_; 104 << message_;
99 } 105 }
100 106
101 IN_PROC_BROWSER_TEST_F(AutomationApiTest, Actions) { 107 IN_PROC_BROWSER_TEST_F(AutomationApiTest, Actions) {
102 StartEmbeddedTestServer(); 108 StartEmbeddedTestServer();
103 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "actions.html")) 109 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "actions.html"))
104 << message_; 110 << message_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 << message_; 153 << message_;
148 } 154 }
149 #else 155 #else
150 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) { 156 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) {
151 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", 157 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop",
152 "desktop_not_supported.html")) << message_; 158 "desktop_not_supported.html")) << message_;
153 } 159 }
154 #endif 160 #endif
155 161
156 } // namespace extensions 162 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_internal_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698