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

Unified Diff: chrome/test/functional/chromeos_security.py

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/functional/chromeos_prefs.py ('k') | chrome/test/functional/chromeos_time.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_security.py
===================================================================
--- chrome/test/functional/chromeos_security.py (revision 261231)
+++ chrome/test/functional/chromeos_security.py (working copy)
@@ -1,42 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-
-import pyauto_functional
-import pyauto
-
-
-class ChromeosSecurity(pyauto.PyUITest):
- """Security tests for chrome on ChromeOS.
-
- Requires ChromeOS to be logged in.
- """
-
- def ExtraChromeFlags(self):
- """Override default list of extra flags typically used with automation.
-
- See the default flags used with automation in pyauto.py.
- Chrome flags for this test should be as close to reality as possible.
- """
- return [
- '--homepage=about:blank',
- ]
-
- def testCannotViewLocalFiles(self):
- """Verify that local files cannot be accessed from the browser."""
- urls_and_titles = {
- 'file:///': 'Index of /',
- 'file:///etc/': 'Index of /etc/',
- self.GetFileURLForDataPath('title2.html'): 'Title Of Awesomeness',
- }
- for url, title in urls_and_titles.iteritems():
- self.NavigateToURL(url)
- self.assertNotEqual(title, self.GetActiveTabTitle(),
- msg='Could access local file %s.' % url)
-
-
-if __name__ == '__main__':
- pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/chromeos_prefs.py ('k') | chrome/test/functional/chromeos_time.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698