| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 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 |
| 11 import test_utils | 11 import test_utils |
| 12 | 12 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 37 'about:plugins': 'chrome://plugins', | 37 'about:plugins': 'chrome://plugins', |
| 38 'about:sync': 'chrome://sync-internals', | 38 'about:sync': 'chrome://sync-internals', |
| 39 'about:sync-internals': 'chrome://sync-internals', | 39 'about:sync-internals': 'chrome://sync-internals', |
| 40 'about:version': 'chrome://version', | 40 'about:version': 'chrome://version', |
| 41 } | 41 } |
| 42 | 42 |
| 43 special_url_tabs = { | 43 special_url_tabs = { |
| 44 'chrome://about': { 'title': 'Chrome URLs' }, | 44 'chrome://about': { 'title': 'Chrome URLs' }, |
| 45 'chrome://appcache-internals': { 'title': 'AppCache Internals' }, | 45 'chrome://appcache-internals': { 'title': 'AppCache Internals' }, |
| 46 'chrome://blob-internals': { 'title': 'Blob Storage Internals' }, | 46 'chrome://blob-internals': { 'title': 'Blob Storage Internals' }, |
| 47 'chrome://bugreport': {}, | 47 'chrome://feedback': {}, |
| 48 'chrome://bugreport/#0': { 'title': 'Feedback' }, | 48 'chrome://feedback/#0': { 'title': 'Feedback' }, |
| 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://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' }, |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 IDC_SHOW_DOWNLOADS.""" | 332 IDC_SHOW_DOWNLOADS.""" |
| 333 for accel, title in self.GetSpecialAcceleratorTabs().iteritems(): | 333 for accel, title in self.GetSpecialAcceleratorTabs().iteritems(): |
| 334 self.RunCommand(accel) | 334 self.RunCommand(accel) |
| 335 self.assertTrue(self.WaitUntil( | 335 self.assertTrue(self.WaitUntil( |
| 336 self.GetActiveTabTitle, expect_retval=title), | 336 self.GetActiveTabTitle, expect_retval=title), |
| 337 msg='Expected "%s"' % title) | 337 msg='Expected "%s"' % title) |
| 338 | 338 |
| 339 | 339 |
| 340 if __name__ == '__main__': | 340 if __name__ == '__main__': |
| 341 pyauto_functional.Main() | 341 pyauto_functional.Main() |
| OLD | NEW |