Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 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 |
| 11 | 11 |
| 12 | 12 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 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://downloads': 'Downloads', | 33 'chrome://downloads': 'Downloads', |
| 34 'chrome://extensions': 'Extensions', | 34 'chrome://extensions': 'Extensions', |
| 35 'chrome://history': 'History', | 35 'chrome://history': 'History', |
| 36 'chrome://newtab': 'New Tab', | 36 'chrome://newtab': 'New Tab', |
| 37 'chrome://sync-internals': 'Sync Internals', | 37 'chrome://sync-internals': 'Sync Internals', |
| 38 'chrome://media-internals': 'Media Internals', | |
|
scherkus (not reviewing)
2011/06/14 02:21:34
this looks like it should be in alphabetical order
Scott Franklin
2011/06/14 17:16:50
Done.
| |
| 38 } | 39 } |
| 39 | 40 |
| 40 def _VerifyAppCacheInternals(self): | 41 def _VerifyAppCacheInternals(self): |
| 41 """Confirm about:appcache-internals contains expected content for Caches. | 42 """Confirm about:appcache-internals contains expected content for Caches. |
| 42 Also confirms that the about page populates Application Caches.""" | 43 Also confirms that the about page populates Application Caches.""" |
| 43 # Navigate to html page to activate DNS prefetching. | 44 # Navigate to html page to activate DNS prefetching. |
| 44 self.NavigateToURL('http://static.webvm.net/appcache-test/simple.html') | 45 self.NavigateToURL('http://static.webvm.net/appcache-test/simple.html') |
| 45 # Wait for page to load and display sucess or fail message. | 46 # Wait for page to load and display sucess or fail message. |
| 46 self.WaitUntil( | 47 self.WaitUntil( |
| 47 lambda: self.GetDOMValue('document.getElementById("result").innerHTML'), | 48 lambda: self.GetDOMValue('document.getElementById("result").innerHTML'), |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 def testSpecialAcceratorTabs(self): | 84 def testSpecialAcceratorTabs(self): |
| 84 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, | 85 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, |
| 85 IDC_SHOW_DOWNLOADS.""" | 86 IDC_SHOW_DOWNLOADS.""" |
| 86 for accel, title in self.special_accelerator_tabs.iteritems(): | 87 for accel, title in self.special_accelerator_tabs.iteritems(): |
| 87 self.RunCommand(accel) | 88 self.RunCommand(accel) |
| 88 self.assertEqual(title, self.GetActiveTabTitle()) | 89 self.assertEqual(title, self.GetActiveTabTitle()) |
| 89 | 90 |
| 90 | 91 |
| 91 if __name__ == '__main__': | 92 if __name__ == '__main__': |
| 92 pyauto_functional.Main() | 93 pyauto_functional.Main() |
| OLD | NEW |