OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 29 matching lines...) Expand all Loading... |
40 'chrome://about': { 'title': 'Chrome URLs' }, | 40 'chrome://about': { 'title': 'Chrome URLs' }, |
41 'chrome://appcache-internals': { 'title': 'AppCache Internals' }, | 41 'chrome://appcache-internals': { 'title': 'AppCache Internals' }, |
42 'chrome://blob-internals': { 'title': 'Blob Storage Internals' }, | 42 'chrome://blob-internals': { 'title': 'Blob Storage Internals' }, |
43 'chrome://feedback': {}, | 43 'chrome://feedback': {}, |
44 'chrome://feedback/#0': { 'title': 'Feedback' }, | 44 'chrome://feedback/#0': { 'title': 'Feedback' }, |
45 'chrome://chrome-urls': { 'title': 'Chrome URLs' }, | 45 'chrome://chrome-urls': { 'title': 'Chrome URLs' }, |
46 'chrome://crashes': { 'title': 'Crashes' }, | 46 'chrome://crashes': { 'title': 'Crashes' }, |
47 'chrome://credits': { 'title': 'Credits' }, | 47 'chrome://credits': { 'title': 'Credits' }, |
48 'chrome://downloads': { 'title': 'Downloads' }, | 48 'chrome://downloads': { 'title': 'Downloads' }, |
49 'chrome://dns': { 'title': 'About DNS' }, | 49 'chrome://dns': { 'title': 'About DNS' }, |
50 'chrome://settings/extensions': { 'title': 'Settings - Extensions' }, | 50 'chrome://extensions': { 'title': 'Extensions' }, |
51 'chrome://flags': {}, | 51 'chrome://flags': {}, |
52 'chrome://flash': {}, | 52 'chrome://flash': {}, |
53 'chrome://gpu-internals': {}, | 53 'chrome://gpu-internals': {}, |
| 54 'chrome://help': { 'title': 'Help' }, |
54 'chrome://histograms': { 'title': 'About Histograms' }, | 55 'chrome://histograms': { 'title': 'About Histograms' }, |
55 'chrome://history': { 'title': 'History' }, | 56 'chrome://history': { 'title': 'History' }, |
56 'chrome://media-internals': { 'title': 'Media Internals' }, | 57 'chrome://media-internals': { 'title': 'Media Internals' }, |
57 'chrome://memory-redirect': { 'title': 'About Memory' }, | 58 'chrome://memory-redirect': { 'title': 'About Memory' }, |
58 'chrome://net-internals': {}, | 59 'chrome://net-internals': {}, |
59 'chrome://net-internals/help.html': {}, | 60 'chrome://net-internals/help.html': {}, |
60 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, | 61 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, |
61 'chrome://plugins': { 'title': 'Plug-ins' }, | 62 'chrome://plugins': { 'title': 'Plug-ins' }, |
62 'chrome://sessions': { 'title': 'Sessions' }, | 63 'chrome://sessions': { 'title': 'Sessions' }, |
63 'chrome://settings': { 'title': 'Settings - Basics' }, | 64 'chrome://settings': { 'title': 'Settings' }, |
| 65 'chrome://settings/autofill': { 'title': 'Settings - Autofill Settings' }, |
| 66 'chrome://settings/clearBrowserData': |
| 67 { 'title': 'Settings - Clear Browsing Data' }, |
| 68 'chrome://settings/content': { 'title': 'Settings - Content Settings' }, |
| 69 'chrome://settings/languages': |
| 70 { 'title': 'Settings - Languages and Input' }, |
| 71 'chrome://settings/passwords': { 'title': 'Settings - Passwords' }, |
64 'chrome://stats': {}, | 72 'chrome://stats': {}, |
65 'chrome://sync': { 'title': 'Sync Internals' }, | 73 'chrome://sync': { 'title': 'Sync Internals' }, |
66 'chrome://sync-internals': { 'title': 'Sync Internals' }, | 74 'chrome://sync-internals': { 'title': 'Sync Internals' }, |
67 'chrome://tasks': { 'title': 'Task Manager - Chromium' }, | 75 'chrome://tasks': { 'title': 'Task Manager - Chromium' }, |
68 'chrome://terms': {}, | 76 'chrome://terms': {}, |
69 'chrome://version': { 'title': 'About Version' }, | 77 'chrome://version': { 'title': 'About Version' }, |
70 'chrome://view-http-cache': {}, | 78 'chrome://view-http-cache': {}, |
71 'chrome://workers': { 'title': 'Workers' }, | 79 'chrome://workers': { 'title': 'Workers' }, |
72 } | 80 } |
73 broken_special_url_tabs = { | 81 broken_special_url_tabs = { |
(...skipping 21 matching lines...) Expand all Loading... |
95 'chrome://os-credits': { 'title': 'Credits', 'CSP': False }, | 103 'chrome://os-credits': { 'title': 'Credits', 'CSP': False }, |
96 'chrome://proxy-settings': { 'CSP': False }, | 104 'chrome://proxy-settings': { 'CSP': False }, |
97 'chrome://register': { 'CSP': False }, | 105 'chrome://register': { 'CSP': False }, |
98 'chrome://sim-unlock': { 'title': 'Enter SIM Card PIN', 'CSP': False }, | 106 'chrome://sim-unlock': { 'title': 'Enter SIM Card PIN', 'CSP': False }, |
99 'chrome://system': { 'title': 'About System', 'CSP': False }, | 107 'chrome://system': { 'title': 'About System', 'CSP': False }, |
100 | 108 |
101 # OVERRIDE - usually a warning page without CSP (so far). | 109 # OVERRIDE - usually a warning page without CSP (so far). |
102 'chrome://flags': { 'CSP': False }, | 110 'chrome://flags': { 'CSP': False }, |
103 | 111 |
104 # OVERRIDE - title and page different on CrOS | 112 # OVERRIDE - title and page different on CrOS |
105 'chrome://settings/about': { 'title': 'Settings - About' }, | |
106 'chrome://settings/accounts': { 'title': 'Settings - Users' }, | 113 'chrome://settings/accounts': { 'title': 'Settings - Users' }, |
107 'chrome://settings/advanced': { 'title': 'Settings - Under the Hood' }, | |
108 'chrome://settings/autofill': { 'title': 'Settings - Autofill Settings' }, | |
109 'chrome://settings/browser': { 'title': 'Settings - Basics' }, | |
110 'chrome://settings/clearBrowserData': | |
111 { 'title': 'Settings - Clear Browsing Data' }, | |
112 'chrome://settings/content': { 'title': 'Settings - Content Settings' }, | |
113 'chrome://settings/extensions': { 'title': 'Settings - Extensions' }, | |
114 'chrome://settings/internet': { 'title': 'Settings - Internet' }, | |
115 'chrome://settings/languages': | |
116 { 'title': 'Settings - Languages and Input' }, | |
117 'chrome://settings/passwords': { 'title': 'Settings - Passwords' }, | |
118 'chrome://settings/personal': { 'title': 'Settings - Personal Stuff' }, | |
119 'chrome://settings/proxy': { 'title': 'Proxy' }, | 114 'chrome://settings/proxy': { 'title': 'Proxy' }, |
120 'chrome://settings/system': { 'title': 'Settings - System' }, | |
121 } | 115 } |
122 broken_chromeos_special_url_tabs = { | 116 broken_chromeos_special_url_tabs = { |
123 # returns "not available" page on chromeos=1 linux but has an URL constant. | 117 # returns "not available" page on chromeos=1 linux but has an URL constant. |
124 'chrome://activationmessage': { 'CSP': False }, | 118 'chrome://activationmessage': { 'CSP': False }, |
125 'chrome://cloudprintresources': { 'CSP': False }, | 119 'chrome://cloudprintresources': { 'CSP': False }, |
126 'chrome://cloudprintsetup': { 'CSP': False }, | 120 'chrome://cloudprintsetup': { 'CSP': False }, |
127 'chrome://collected-cookies': { 'CSP': False }, | 121 'chrome://collected-cookies': { 'CSP': False }, |
128 'chrome://constrained-test': { 'CSP': False }, | 122 'chrome://constrained-test': { 'CSP': False }, |
129 'chrome://enterprise-enrollment': { 'CSP': False }, | 123 'chrome://enterprise-enrollment': { 'CSP': False }, |
130 'chrome://http-auth': { 'CSP': False }, | 124 'chrome://http-auth': { 'CSP': False }, |
(...skipping 11 matching lines...) Expand all Loading... |
142 'chrome://tasks': {}, | 136 'chrome://tasks': {}, |
143 } | 137 } |
144 | 138 |
145 linux_special_url_tabs = { | 139 linux_special_url_tabs = { |
146 'chrome://linux-proxy-config': { 'title': 'Proxy Configuration Help' }, | 140 'chrome://linux-proxy-config': { 'title': 'Proxy Configuration Help' }, |
147 'chrome://tcmalloc': { 'title': 'About tcmalloc' }, | 141 'chrome://tcmalloc': { 'title': 'About tcmalloc' }, |
148 'chrome://sandbox': { 'title': 'Sandbox Status' }, | 142 'chrome://sandbox': { 'title': 'Sandbox Status' }, |
149 } | 143 } |
150 broken_linux_special_url_tabs = {} | 144 broken_linux_special_url_tabs = {} |
151 | 145 |
152 mac_special_url_tabs = {} | 146 mac_special_url_tabs = { |
| 147 'chrome://settings/languages': { 'title': 'Settings - Languages' }, |
| 148 } |
153 broken_mac_special_url_tabs = {} | 149 broken_mac_special_url_tabs = {} |
154 | 150 |
155 win_special_url_tabs = { | 151 win_special_url_tabs = { |
156 'chrome://conflicts': {}, | 152 'chrome://conflicts': {}, |
157 } | 153 } |
158 broken_win_special_url_tabs = { | 154 broken_win_special_url_tabs = { |
159 # Sync on windows badly broken at the moment. | 155 # Sync on windows badly broken at the moment. |
160 'chrome://sync': {}, | 156 'chrome://sync': {}, |
161 } | 157 } |
162 | 158 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 IDC_SHOW_DOWNLOADS.""" | 322 IDC_SHOW_DOWNLOADS.""" |
327 for accel, title in self.GetSpecialAcceleratorTabs().iteritems(): | 323 for accel, title in self.GetSpecialAcceleratorTabs().iteritems(): |
328 self.RunCommand(accel) | 324 self.RunCommand(accel) |
329 self.assertTrue(self.WaitUntil( | 325 self.assertTrue(self.WaitUntil( |
330 self.GetActiveTabTitle, expect_retval=title), | 326 self.GetActiveTabTitle, expect_retval=title), |
331 msg='Expected "%s"' % title) | 327 msg='Expected "%s"' % title) |
332 | 328 |
333 | 329 |
334 if __name__ == '__main__': | 330 if __name__ == '__main__': |
335 pyauto_functional.Main() | 331 pyauto_functional.Main() |
OLD | NEW |