OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import logging | 6 import logging |
7 import os | 7 import os |
8 | 8 |
9 import pyauto_functional # Must be imported before pyauto | 9 import pyauto_functional # Must be imported before pyauto |
10 import pyauto | 10 import pyauto |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 broken_linux_special_url_tabs = { | 144 broken_linux_special_url_tabs = { |
145 } | 145 } |
146 | 146 |
147 mac_special_url_tabs = { | 147 mac_special_url_tabs = { |
148 } | 148 } |
149 | 149 |
150 broken_mac_special_url_tabs = { | 150 broken_mac_special_url_tabs = { |
151 } | 151 } |
152 | 152 |
153 win_special_url_tabs = { | 153 win_special_url_tabs = { |
154 'chrome://conflicts': { 'CSP': False }, | 154 'chrome://conflicts': {}, |
155 | 155 |
156 # OVERRIDE - different title for page. | 156 # OVERRIDE - different title for page. |
157 'chrome://settings': { 'title': 'Options - Basics' }, | 157 'chrome://settings': { 'title': 'Options - Basics' }, |
158 } | 158 } |
159 | 159 |
160 broken_win_special_url_tabs = { | 160 broken_win_special_url_tabs = { |
161 # Sync on windows badly broken at the moment. | 161 # Sync on windows badly broken at the moment. |
162 'chrome://sync': {}, | 162 'chrome://sync': {}, |
163 } | 163 } |
164 | 164 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 def testSpecialAcceratorTabs(self): | 276 def testSpecialAcceratorTabs(self): |
277 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, | 277 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, |
278 IDC_SHOW_DOWNLOADS.""" | 278 IDC_SHOW_DOWNLOADS.""" |
279 for accel, title in self.special_accelerator_tabs.iteritems(): | 279 for accel, title in self.special_accelerator_tabs.iteritems(): |
280 self.RunCommand(accel) | 280 self.RunCommand(accel) |
281 self.assertEqual(title, self.GetActiveTabTitle()) | 281 self.assertEqual(title, self.GetActiveTabTitle()) |
282 | 282 |
283 | 283 |
284 if __name__ == '__main__': | 284 if __name__ == '__main__': |
285 pyauto_functional.Main() | 285 pyauto_functional.Main() |
OLD | NEW |