Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Side by Side Diff: chrome/test/functional/special_tabs.py

Issue 7452012: Add content-security-policy to chrome://sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/sessions_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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', 'CSP': False }, 60 'chrome://history2': { 'title': 'History', 'CSP': False },
61 'chrome://media-internals': { 'title': 'Media Internals', 'CSP': False }, 61 'chrome://media-internals': { 'title': 'Media Internals', 'CSP': False },
62 'chrome://memory-redirect': { 'title': 'About Memory' }, 62 'chrome://memory-redirect': { 'title': 'About Memory' },
63 'chrome://net-internals': {}, 63 'chrome://net-internals': {},
64 'chrome://net-internals/help.html': {}, 64 'chrome://net-internals/help.html': {},
65 'chrome://newtab': { 'title': 'New Tab', 'CSP': False }, 65 'chrome://newtab': { 'title': 'New Tab', 'CSP': False },
66 'chrome://plugins': { 'title': 'Plug-ins' }, 66 'chrome://plugins': { 'title': 'Plug-ins' },
67 'chrome://sessions': { 'title': 'Sessions', 'CSP': False }, 67 'chrome://sessions': { 'title': 'Sessions' },
68 'chrome://settings': { 'title': 'Preferences - Basics' }, 68 'chrome://settings': { 'title': 'Preferences - Basics' },
69 'chrome://stats': { 'CSP': False }, 69 'chrome://stats': { 'CSP': False },
70 'chrome://sync': { 'title': 'Sync Internals', 'CSP': False }, 70 'chrome://sync': { 'title': 'Sync Internals', 'CSP': False },
71 'chrome://sync-internals': { 'title': 'Sync Internals', 'CSP': False }, 71 'chrome://sync-internals': { 'title': 'Sync Internals', 'CSP': False },
72 'chrome://terms': { 'CSP': False }, 72 'chrome://terms': { 'CSP': False },
73 'chrome://textfields': { 'title': 'chrome://textfields', 'CSP': False }, 73 'chrome://textfields': { 'title': 'chrome://textfields', 'CSP': False },
74 'chrome://version': { 'title': 'About Version' }, 74 'chrome://version': { 'title': 'About Version' },
75 'chrome://view-http-cache': {}, 75 'chrome://view-http-cache': {},
76 } 76 }
77 77
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 def testSpecialAcceratorTabs(self): 310 def testSpecialAcceratorTabs(self):
311 """Test special tabs created by acclerators like IDC_SHOW_HISTORY, 311 """Test special tabs created by acclerators like IDC_SHOW_HISTORY,
312 IDC_SHOW_DOWNLOADS.""" 312 IDC_SHOW_DOWNLOADS."""
313 for accel, title in self.special_accelerator_tabs.iteritems(): 313 for accel, title in self.special_accelerator_tabs.iteritems():
314 self.RunCommand(accel) 314 self.RunCommand(accel)
315 self.assertEqual(title, self.GetActiveTabTitle()) 315 self.assertEqual(title, self.GetActiveTabTitle())
316 316
317 317
318 if __name__ == '__main__': 318 if __name__ == '__main__':
319 pyauto_functional.Main() 319 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sessions_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698