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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 'CSP': False | 47 'CSP': False |
48 }, | 48 }, |
49 'chrome://chrome-urls': { 'title': 'Chrome URLs' }, | 49 'chrome://chrome-urls': { 'title': 'Chrome URLs' }, |
50 'chrome://crashes': { 'title': 'Crashes' }, | 50 'chrome://crashes': { 'title': 'Crashes' }, |
51 'chrome://credits': { 'title': 'Credits', 'CSP': False }, | 51 'chrome://credits': { 'title': 'Credits', 'CSP': False }, |
52 'chrome://downloads': { 'title': 'Downloads' }, | 52 'chrome://downloads': { 'title': 'Downloads' }, |
53 'chrome://dns': { 'title': 'About DNS' }, | 53 'chrome://dns': { 'title': 'About DNS' }, |
54 'chrome://extensions': { 'title': 'Extensions' }, | 54 'chrome://extensions': { 'title': 'Extensions' }, |
55 'chrome://flags': {}, | 55 'chrome://flags': {}, |
56 'chrome://flash': {}, | 56 'chrome://flash': {}, |
57 'chrome://gpu-internals': { 'CSP': False }, | 57 'chrome://gpu-internals': {}, |
58 'chrome://histograms': { 'title': 'About Histograms' }, | 58 'chrome://histograms': { 'title': 'About Histograms' }, |
59 'chrome://history': { 'title': 'History' }, | 59 'chrome://history': { 'title': 'History' }, |
60 'chrome://history2': { 'title': 'History', 'CSP': False }, | 60 'chrome://history2': { 'title': 'History', 'CSP': False }, |
61 'chrome://media-internals': { 'title': 'Media Internals', 'CSP': False }, | 61 'chrome://media-internals': { 'title': 'Media Internals', 'CSP': False }, |
62 'chrome://memory-redirect': { 'title': 'About Memory' }, | 62 'chrome://memory-redirect': { 'title': 'About Memory' }, |
63 'chrome://net-internals': { 'CSP': False }, | 63 'chrome://net-internals': { 'CSP': False }, |
64 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, | 64 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, |
65 'chrome://plugins': { 'title': 'Plug-ins' }, | 65 'chrome://plugins': { 'title': 'Plug-ins' }, |
66 'chrome://sessions': { 'title': 'Sessions', 'CSP': False }, | 66 'chrome://sessions': { 'title': 'Sessions', 'CSP': False }, |
67 'chrome://settings': { 'title': 'Preferences - Basics' }, | 67 'chrome://settings': { 'title': 'Preferences - Basics' }, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 def testSpecialAcceratorTabs(self): | 309 def testSpecialAcceratorTabs(self): |
310 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, | 310 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, |
311 IDC_SHOW_DOWNLOADS.""" | 311 IDC_SHOW_DOWNLOADS.""" |
312 for accel, title in self.special_accelerator_tabs.iteritems(): | 312 for accel, title in self.special_accelerator_tabs.iteritems(): |
313 self.RunCommand(accel) | 313 self.RunCommand(accel) |
314 self.assertEqual(title, self.GetActiveTabTitle()) | 314 self.assertEqual(title, self.GetActiveTabTitle()) |
315 | 315 |
316 | 316 |
317 if __name__ == '__main__': | 317 if __name__ == '__main__': |
318 pyauto_functional.Main() | 318 pyauto_functional.Main() |
OLD | NEW |