| 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 os | 6 import os |
| 7 | 7 |
| 8 import pyauto_functional # Must be imported before pyauto | 8 import pyauto_functional # Must be imported before pyauto |
| 9 import pyauto | 9 import pyauto |
| 10 import test_utils | 10 import test_utils |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 'about:dns': 'About DNS', | 27 'about:dns': 'About DNS', |
| 28 'about:histograms': 'About Histograms', | 28 'about:histograms': 'About Histograms', |
| 29 'about:plugins': 'Plug-ins', | 29 'about:plugins': 'Plug-ins', |
| 30 'about:sync': 'Sync Internals', | 30 'about:sync': 'Sync Internals', |
| 31 'about:sync-internals': 'Sync Internals', | 31 'about:sync-internals': 'Sync Internals', |
| 32 'about:version': 'About Version', | 32 'about:version': 'About Version', |
| 33 'chrome://about': 'Chrome URLs', | 33 'chrome://about': 'Chrome URLs', |
| 34 'chrome://downloads': 'Downloads', | 34 'chrome://downloads': 'Downloads', |
| 35 'chrome://extensions': 'Extensions', | 35 'chrome://extensions': 'Extensions', |
| 36 'chrome://history': 'History', | 36 'chrome://history': 'History', |
| 37 'chrome://media-internals': 'Media Internals', |
| 37 'chrome://newtab': 'New Tab', | 38 'chrome://newtab': 'New Tab', |
| 38 'chrome://sync-internals': 'Sync Internals', | 39 'chrome://sync-internals': 'Sync Internals', |
| 39 } | 40 } |
| 40 | 41 |
| 41 def _VerifyAppCacheInternals(self): | 42 def _VerifyAppCacheInternals(self): |
| 42 """Confirm about:appcache-internals contains expected content for Caches. | 43 """Confirm about:appcache-internals contains expected content for Caches. |
| 43 Also confirms that the about page populates Application Caches.""" | 44 Also confirms that the about page populates Application Caches.""" |
| 44 # Navigate to html page to activate DNS prefetching. | 45 # Navigate to html page to activate DNS prefetching. |
| 45 self.NavigateToURL('http://static.webvm.net/appcache-test/simple.html') | 46 self.NavigateToURL('http://static.webvm.net/appcache-test/simple.html') |
| 46 # Wait for page to load and display sucess or fail message. | 47 # Wait for page to load and display sucess or fail message. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 def testSpecialAcceratorTabs(self): | 85 def testSpecialAcceratorTabs(self): |
| 85 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, | 86 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, |
| 86 IDC_SHOW_DOWNLOADS.""" | 87 IDC_SHOW_DOWNLOADS.""" |
| 87 for accel, title in self.special_accelerator_tabs.iteritems(): | 88 for accel, title in self.special_accelerator_tabs.iteritems(): |
| 88 self.RunCommand(accel) | 89 self.RunCommand(accel) |
| 89 self.assertEqual(title, self.GetActiveTabTitle()) | 90 self.assertEqual(title, self.GetActiveTabTitle()) |
| 90 | 91 |
| 91 | 92 |
| 92 if __name__ == '__main__': | 93 if __name__ == '__main__': |
| 93 pyauto_functional.Main() | 94 pyauto_functional.Main() |
| OLD | NEW |