summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/ntp.py
Commit message (Collapse)AuthorAgeFilesLines
* remove ntp.NTPTest.testRecentlyClosedShowsUniqueItems pyauto testestade@chromium.org2011-12-011-9/+0
| | | | | | | | | | | | we decided to show "duplicate" items in the recently closed menu because they may not actually be duplicates. For example, they may have different history even if the url and title for the tab is the same. BUG=105760 TEST=none Review URL: http://codereview.chromium.org/8764013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112396 0039d316-1c4b-4281-b951-d872f2087c98
* Allow chromedriver to install an extension and get all installed extension IDs.kkania@chromium.org2011-11-291-10/+7
| | | | | | | | | | | Fix install extension hook to only watch for internal extension install. BUG=103033,93571 TEST=none Review URL: http://codereview.chromium.org/8649004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111927 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/chrome/test/functional/maruel@chromium.org2011-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. Minor python style fixes. R=nirnimesh@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8676019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111657 0039d316-1c4b-4281-b951-d872f2087c98
* ntp: remove ShownSectionHandler and all references to itestade@chromium.org2011-11-031-198/+0
| | | | | | | | | | | it's not a part of ntp4. It controlled the display state of the various sections in ntp3. BUG=76706 TEST=trybots Review URL: http://codereview.chromium.org/8438028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108399 0039d316-1c4b-4281-b951-d872f2087c98
* Revise pyauto NTP tests to account for recent change to app_launcher_handler.cc.dennisjeffrey@chromium.org2011-10-041-13/+13
| | | | | | | | | | | | | | As of r103904, AppLauncherHandler::CreateAppInfo no longer returns an attribute 'name' in the app info object. The attribute to use instead is 'title'. Pyauto-based New Tab Page tests are now updated to reflect this change. BUG=99059 TEST=None Review URL: http://codereview.chromium.org/8133007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103997 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ntp.NTPTest.testSetMenuModeOn to work properly when run with the ↵dennisjeffrey@chromium.org2011-10-041-1/+2
| | | | | | | | | | | | | | | | --repeat flag. This test was erroneously modifying the value of a class list object, which caused the test to fail on subsequent executions when invoked with the --repeat flag to pyauto. Copying the list values and then modifying only the copy, fixes the problem. BUG=85598 TEST=ntp.NTPTest.testSetMenuModeOn now works when run with the --repeat flag. Review URL: http://codereview.chromium.org/8113023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103837 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor pyauto tests to use pprint() and pformat() from pyauto.py.dennisjeffrey@chromium.org2011-09-261-3/+1
| | | | | | | | | | | Also added a Debug() function to process_count.py. BUG=97663 TEST=None Review URL: http://codereview.chromium.org/8037007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102747 0039d316-1c4b-4281-b951-d872f2087c98
* Convert PyAuto hooks to multiprofile.mirandac@chromium.org2011-09-231-0/+8
| | | | | | | | | | | | | | | | | Specific changes: Add a method to create a new profile to TestingAutomationProvider. Add a method to open a browser window with a given Profile. Fix methods in TestingAutomationProvider to use the profile from a browser, instead of the instance variable profile_. Add a test in ntp.py to make sure ntp pages don't leak between profiles, to test the new methods. The general idea here is that one can still use profile_ for most tests, but one has the option of creating multiple profiles and opening windows with a specific profile to test multiprofile features. BUG=87470 TEST=new ntp.py test in CL. Review URL: http://codereview.chromium.org/7865026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102470 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor: Make PyAuto InstallExtension() take a string. Delete dead code.dtu@chromium.org2011-08-041-9/+6
| | | | | | | | | | BUG=chromium:86890 TEST=Run the modified PyAuto tests on all platforms. Review URL: http://codereview.chromium.org/7548024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95490 0039d316-1c4b-4281-b951-d872f2087c98
* Update pyauto NTP tests to account for Cloud Print no longer on ChromeOS.dennisjeffrey@chromium.org2011-07-231-1/+2
| | | | | | | | | | | | Cloud Print is no longer included on ChromeOS as of http://codereview.chromium.org/7472027/. BUG=None TEST=None Review URL: http://codereview.chromium.org/7488033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93789 0039d316-1c4b-4281-b951-d872f2087c98
* Update expectations in NTP pyauto testnirnimesh@chromium.org2011-07-141-1/+2
| | | | | | | | | | R=dennisjeffrey@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/7363015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92566 0039d316-1c4b-4281-b951-d872f2087c98
* Update the apps list at startup for pyauto tests on chromeosnirnimesh@chromium.org2011-05-281-1/+0
| | | | | | | | | | | BUG=chromium-os:15892 R=dennisjeffrey@chromium.org TEST= Review URL: http://codereview.chromium.org/7082024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87124 0039d316-1c4b-4281-b951-d872f2087c98
* Support for component extensions as apps on the new tab page. Added filebrowser.dgozman@chromium.org2011-05-251-0/+1
| | | | | | | | BUG=chromium-os:14543 TEST=File Manager should be on NTP. Review URL: http://codereview.chromium.org/6912024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86621 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NTP PyAuto tests on ChromeOS related to menu/thumbnail mode.dennisjeffrey@google.com2011-04-191-41/+36
| | | | | | | | | | | Fix and re-enable PyAuto tests that were failing on ChromeOS due to differences in default menu/thumbnail mode preferences between Chrome and ChromeOS. BUG=crosbug.com/14150 TEST=None. Review URL: http://codereview.chromium.org/6878060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82181 0039d316-1c4b-4281-b951-d872f2087c98
* Fix set of default apps for ChromeOS (PyAuto NTP tests).dennisjeffrey@google.com2011-04-191-3/+4
| | | | | | | | | | | | | The set of default apps on ChromeOS includes a special "Get Started" app. The PyAuto NTP tests now account for this, allowing 5 disabled PyAuto NTP tests to now pass. These tests are now re-enabled. BUG=crosbug.com/14150 TEST=None Review URL: http://codereview.chromium.org/6879024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82128 0039d316-1c4b-4281-b951-d872f2087c98
* New automation hook to set the app launch type (e.g., window vs. tab).dennisjeffrey@google.com2011-04-151-14/+79
| | | | | | | | | | | | | | | This hook allows the launch type for a specified app to be set as either a regular tab, a pinned tab, a fullscreen tab, or a tab in a new window. Sample PyAuto tests are included that exercise this hook. The GetBrowserInfo automation hook is also slightly modified to return information about whether each existing tab is pinned or not. BUG=75205 TEST=None. Review URL: http://codereview.chromium.org/6852005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81808 0039d316-1c4b-4281-b951-d872f2087c98
* New automation hook to launch an app, with sample PyAuto test.dennisjeffrey@google.com2011-04-131-0/+22
| | | | | | | | | BUG=75205 TEST=None Review URL: http://codereview.chromium.org/6815024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81496 0039d316-1c4b-4281-b951-d872f2087c98
* New notification sent when extension uninstall is not allowed.dennisjeffrey@google.com2011-04-071-1/+17
| | | | | | | | | | | | | | | | In the event that an extension uninstall is skipped (not allowed) because that extension is not user-manageable, a new notification is sent. The automation hook UninstallExtensionById is revised to handle this case, and a new PyAuto test is written to exercise this new functionality (the test attempts to uninstall the WebStore and verifies that this extension cannot be uninstalled). BUG=76598 TEST=None. Review URL: http://codereview.chromium.org/6794040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80814 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for hook UninstallExtensionById, and PyAuto function to uninstall an app.dennisjeffrey@google.com2011-03-291-11/+27
| | | | | | | | | | | | | | Revised the UninstallExtensionById automation hook to properly wait for the EXTENSION_UNINSTALLED notification before sending a reply. Also implemented a PyAuto function "UninstallApp", one of the functions needed to automate the context menu for an app on Chrome's new tab page. BUG=75205 TEST=none Review URL: http://codereview.chromium.org/6679015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79697 0039d316-1c4b-4281-b951-d872f2087c98
* New automation hooks to get/set the thumbnail/menu modes for NTP sections.nirnimesh@chromium.org2011-03-031-0/+225
| | | | | | | | | | | | A few sample PyAuto tests are included that exerise these new hooks. Contributed by dennisjeffrey@chromium.org. BUG=64271 TEST=None Review URL: http://codereview.chromium.org/6610021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76787 0039d316-1c4b-4281-b951-d872f2087c98
* CRX files now specified with absolute paths in PyAuto NTP Apps tests.nirnimesh@chromium.org2011-02-231-3/+6
| | | | | | | | | | | | | Documentation for a few associated functions has also been revised to explicitly state that app/theme/extension files must be specified with absolute paths. BUG=64271 TEST=None Review URL: http://codereview.chromium.org/6580012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75813 0039d316-1c4b-4281-b951-d872f2087c98
* New automation hook to get information about apps on the new tab page.nirnimesh@chromium.org2011-02-231-0/+84
| | | | | | | | | | | | Several pyauto tests are included that exercise the new automation hook. Contributed by dennisjeffrey@chromium.org. BUG=64271 TEST=None Review URL: http://codereview.chromium.org/6532067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75783 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto tests for the New Tab page.kkania@chromium.org2010-12-041-13/+212
| | | | | | | | | BUG=63816 TEST=none Review URL: http://codereview.chromium.org/5255005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68268 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto hook for getting and manipulating the data underneath the NTP.kkania@chromium.org2010-11-191-0/+99
BUG=49113 TEST=none Review URL: http://codereview.chromium.org/5088001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66709 0039d316-1c4b-4281-b951-d872f2087c98