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

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: Test working 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
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 LoadPage(); 102 LoadPage();
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 LoadPage(); 108 LoadPage();
103 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "actions.html")) 109 ASSERT_TRUE(RunExtensionSubtest("automation/tests/tabs", "actions.html"))
104 << message_; 110 << message_;
(...skipping 28 matching lines...) Expand all
133 << message_; 139 << message_;
134 } 140 }
135 #else 141 #else
136 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) { 142 IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotSupported) {
137 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", 143 ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop",
138 "desktop_not_supported.html")) << message_; 144 "desktop_not_supported.html")) << message_;
139 } 145 }
140 #endif 146 #endif
141 147
142 } // namespace extensions 148 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698