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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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://settings/extensions': { 'title': 'Preferences - Extensions' }, | 54 'chrome://settings/extensions': { 'title': 'Preferences - Extensions' }, |
55 'chrome://flags': {}, | 55 'chrome://flags': {}, |
56 'chrome://flash': {}, | 56 'chrome://flash': {}, |
57 'chrome://gpu-internals': {}, | 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' }, | |
61 'chrome://media-internals': { 'title': 'Media Internals' }, | 60 'chrome://media-internals': { 'title': 'Media Internals' }, |
62 'chrome://memory-redirect': { 'title': 'About Memory' }, | 61 'chrome://memory-redirect': { 'title': 'About Memory' }, |
63 'chrome://net-internals': {}, | 62 'chrome://net-internals': {}, |
64 'chrome://net-internals/help.html': {}, | 63 'chrome://net-internals/help.html': {}, |
65 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, | 64 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, |
66 'chrome://plugins': { 'title': 'Plug-ins' }, | 65 'chrome://plugins': { 'title': 'Plug-ins' }, |
67 'chrome://sessions': { 'title': 'Sessions' }, | 66 'chrome://sessions': { 'title': 'Sessions' }, |
68 'chrome://settings': { 'title': 'Preferences - Basics' }, | 67 'chrome://settings': { 'title': 'Preferences - Basics' }, |
69 'chrome://stats': {}, | 68 'chrome://stats': {}, |
70 'chrome://sync': { 'title': 'Sync Internals' }, | 69 'chrome://sync': { 'title': 'Sync Internals' }, |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 IDC_SHOW_DOWNLOADS.""" | 332 IDC_SHOW_DOWNLOADS.""" |
334 for accel, title in self.GetSpecialAcceleratorTabs().iteritems(): | 333 for accel, title in self.GetSpecialAcceleratorTabs().iteritems(): |
335 self.RunCommand(accel) | 334 self.RunCommand(accel) |
336 self.assertTrue(self.WaitUntil( | 335 self.assertTrue(self.WaitUntil( |
337 self.GetActiveTabTitle, expect_retval=title), | 336 self.GetActiveTabTitle, expect_retval=title), |
338 msg='Expected "%s"' % title) | 337 msg='Expected "%s"' % title) |
339 | 338 |
340 | 339 |
341 if __name__ == '__main__': | 340 if __name__ == '__main__': |
342 pyauto_functional.Main() | 341 pyauto_functional.Main() |
OLD | NEW |