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

Unified Diff: chrome/test/functional/chromeos_browser.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_battery.py ('k') | chrome/test/functional/chromeos_crosh.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_browser.py
===================================================================
--- chrome/test/functional/chromeos_browser.py (revision 261231)
+++ chrome/test/functional/chromeos_browser.py (working copy)
@@ -1,52 +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 pyauto_functional # pyauto_functional must come before pyauto.
-import pyauto
-import test_utils
-
-
-class ChromeosBrowserTest(pyauto.PyUITest):
-
- def testCannotCloseLastIncognito(self):
- """Verify that last incognito window cannot be closed if it's the
- last window"""
- self.RunCommand(pyauto.IDC_NEW_INCOGNITO_WINDOW)
- self.assertTrue(self.GetBrowserInfo()['windows'][1]['incognito'],
- msg='Incognito window is not displayed')
-
- self.CloseBrowserWindow(0)
- info = self.GetBrowserInfo()['windows']
- self.assertEqual(1, len(info))
- url = info[0]['tabs'][0]['url']
- self.assertEqual('chrome://newtab/', url,
- msg='Unexpected URL: %s' % url)
- self.assertTrue(info[0]['incognito'],
- msg='Incognito window is not displayed.')
-
- def testCrashBrowser(self):
- """Verify that after broswer crash is recovered, user can still navigate
- to other URL."""
- test_utils.CrashBrowser(self)
- self.RestartBrowser(clear_profile=False)
- url = self.GetHttpURLForDataPath('english_page.html')
- self.NavigateToURL(url)
- self.assertEqual('This page is in English', self.GetActiveTabTitle())
-
- def testFullScreen(self):
- """Verify that a browser window can enter and exit full screen mode."""
- self.ApplyAccelerator(pyauto.IDC_FULLSCREEN)
- self.assertTrue(self.WaitUntil(lambda:
- self.GetBrowserInfo()['windows'][0]['fullscreen']),
- msg='Full Screen is not displayed.')
-
- self.ApplyAccelerator(pyauto.IDC_FULLSCREEN)
- self.assertTrue(self.WaitUntil(lambda: not
- self.GetBrowserInfo()['windows'][0]['fullscreen']),
- msg='Normal screen is not displayed.')
-
-
-if __name__ == '__main__':
- pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/chromeos_battery.py ('k') | chrome/test/functional/chromeos_crosh.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698