OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |