summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional
Commit message (Collapse)AuthorAgeFilesLines
* Fetch a bunch of info from the browsernirnimesh@chromium.org2010-05-252-5/+31
| | | | | | | | | | | | | | This includes info about the browser/renderer/extension/other PIDs, window size. Add a method to set window size. Add tests to verify window size, and verify flash loading. BUG=43234 TEST=python chrome/test/functional/browser.py Review URL: http://codereview.chromium.org/2133013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48192 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for test exclusions for pyauto tests.nirnimesh@chromium.org2010-05-252-10/+7
| | | | | | | | | | | | This makes it easy to exclude tests in PYAUTO_TESTS by prefixing '-'. This can be done in any platform-specific section as well to exclude a test on that platform. Update PYAUTO_TESTS accordingly. Review URL: http://codereview.chromium.org/2161006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48175 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of navsuggest results in omnibox tests.nirnimesh@chromium.org2010-05-201-14/+1
| | | | | | | | | Turns out navsuggest (URL suggestions) depends on the mood of the google servers. Removing navsuggest. Review URL: http://codereview.chromium.org/2117022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47856 0039d316-1c4b-4281-b951-d872f2087c98
* A few more tests for omniboxnirnimesh@chromium.org2010-05-191-14/+79
| | | | | | | | | | | | | testSuggest,testDiffTypesOfResults,testSuggestPref,testSuggestCombinationOfWords - from Srikanth Also, - make testCrazyFilenames more robust to deal with win quirks - expand testHistory to test from another tab, another window and incognito window Review URL: http://codereview.chromium.org/2122012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47613 0039d316-1c4b-4281-b951-d872f2087c98
* Add new omnibox functional testsnirnimesh@chromium.org2010-05-182-24/+103
| | | | | | | | TEST=python chrome/test/functional/omnibox.py Review URL: http://codereview.chromium.org/2091011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47573 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a pref test -- Win/Linux don't have browser.show_page_options_buttons prefnirnimesh@chromium.org2010-05-181-3/+7
| | | | | | | | TEST=python chrome/test/functional/prefs.py prefs.PrefsTest.testToolbarButtonsPref Review URL: http://codereview.chromium.org/2117009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47481 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few functional tests for prefsnirnimesh@chromium.org2010-05-171-0/+66
| | | | | | | | | | | | testNavigationStateOnSessionRestore -- from Sunand testDownloadDirPref -- from Deepak testToolbarButtonsPref, testHomepagePrefs -- from Rohit TEST=python chrome/test/functional/prefs.py Review URL: http://codereview.chromium.org/2087005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47464 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks for fetching info about omniboxnirnimesh@chromium.org2010-05-142-0/+75
| | | | | | | | | | | | 1. Make the use of browser explicit for each json handler so that handlers that need access to Browser* can have it. Omnibox needs it. 2. Add a simple test TEST=python chrome/test/functional/omnibox.py Review URL: http://codereview.chromium.org/2015010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47311 0039d316-1c4b-4281-b951-d872f2087c98
* Add hooks for fetching basic info from the browser.nirnimesh@chromium.org2010-05-132-0/+37
| | | | | | | | This includes info like version string, executable name, path, and so on. Review URL: http://codereview.chromium.org/2009013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47159 0039d316-1c4b-4281-b951-d872f2087c98
* Remove chrome://net-internals from special tabs testnirnimesh@chromium.org2010-05-111-2/+0
| | | | | | | | | | | Recent changes to chrome://net-internals (and about:net-internals) code no longer sets the title as expected. Remove them. TEST=python chrome/test/functional/special_tabs.py Review URL: http://codereview.chromium.org/2041009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46892 0039d316-1c4b-4281-b951-d872f2087c98
* Add an AddHistoryItem() API to PyAuto with example use.jrg@chromium.org2010-05-071-0/+26
| | | | | | | | | | | Change GetHistory time value from int to float to keep precision. BUG=none TEST=run pyautolib Review URL: http://codereview.chromium.org/2036004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46704 0039d316-1c4b-4281-b951-d872f2087c98
* Add hooks to fetch about:plugins info for PyAuto.nirnimesh@chromium.org2010-05-062-0/+45
| | | | | | | | | Also, hooks for to enable/disable a plugin. Add a test which excercises them. Review URL: http://codereview.chromium.org/1935003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46553 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto tests for Navigation.nirnimesh@chromium.org2010-05-052-2/+105
| | | | | | Review URL: http://codereview.chromium.org/1948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46471 0039d316-1c4b-4281-b951-d872f2087c98
* Add new bookmarks tests.nirnimesh@chromium.org2010-05-032-0/+99
| | | | | | | | | | | testURLTypes (from Srikanth): test for different URL types - http: https: ftp: javascript:, etc testDuplicateBookmarks (from Ismail): Verify bookmark duplicates testBookmarksPersistence (from Deepak): Verify that bookmarks and groups persist browser restart testSessionRestoreShowBookmarkBar (from Srikanth): Verify restore for bookmark bar visibility Review URL: http://codereview.chromium.org/1719002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46292 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Fix GetFileURLForPath for windows. GetFileURLForPath() should not quote() ↵nirnimesh@chromium.org2010-05-032-21/+33
| | | | | | | | | | | | ':' in the drive letter on windows. 2. Fix testCrazyFilenames test for win. Expand crazy_filenames.txt to contain i18n filenames as ascii strings. 3. Disable bookmark_bar.testBookmarkBarVisible on win 4. Get rid of using hashlib module in dowload tests. Since we have the files, it doesn't make sense to compute checksum to verify if 2 files are the same -- direct comparison will do. Review URL: http://codereview.chromium.org/1780013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46258 0039d316-1c4b-4281-b951-d872f2087c98
* Fix data dir name for testRedirectHistory on linuxnirnimesh@chromium.org2010-04-291-1/+1
| | | | | | | | | | | dir name "history" is not the same as "History" on linux, though it is on Mac on which I tried first. :( TEST=python chrome/test/functional/history.py Review URL: http://codereview.chromium.org/1789009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45994 0039d316-1c4b-4281-b951-d872f2087c98
* Add 2 tests for history.nirnimesh@chromium.org2010-04-292-19/+32
| | | | | | | | | | | | | testDownloadNoHistory,testRedirectHistory -- from Deepak. Also, move _DownloadAndWaitForStart (re-used by the new tests) to a common location. TEST=python chrome/test/funtional/history.py Review URL: http://codereview.chromium.org/1702010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45987 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks for setting/gettting preferences.nirnimesh@chromium.org2010-04-292-6/+34
| | | | | | | | | | | | | | | | Add a test which excercises this, update old test. Also, - Remove some old prefs hooks. They were not easy to use and required the user to know what a preference type was, with no way of listing them out. - replace if-else statements for json handlers with a map. - Fix json error strings. json prefers " over ' (automation_provider.cc) BUG=42701 TEST=python chrome/test/functional/prefs.py Review URL: http://codereview.chromium.org/1712019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45956 0039d316-1c4b-4281-b951-d872f2087c98
* Fix testInvalidURLNoHistory to account for proxy invalid url page.nirnimesh@chromium.org2010-04-291-3/+5
| | | | | | | | | Proxy servers can show up a page for invalid URLs. This does go in history, and so that test fails. Use file:// urls only. Review URL: http://codereview.chromium.org/1745020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45888 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests for history.nirnimesh@chromium.org2010-04-261-2/+108
| | | | | | | | | | | | | | | Tests various scenarios with chromium history. testHistoryPersists, testInvalidURLNoHistory -- by Srikanth. testNewTabNoHistory, testIncognitoNoHistory, testStarredBookmarkInHistory, testHistorySearchSnippet -- by Ismail. testNavigateMultiTimes, testMultiTabsWindowsHistory -- by Rohit. TEST=python chrome/test/functional/history.py Review URL: http://codereview.chromium.org/1745012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45597 0039d316-1c4b-4281-b951-d872f2087c98
* Fix downloads.DownloadsTest.testCrazyFilenames to use crazy filenames butnirnimesh@chromium.org2010-04-221-89/+51
| | | | | | | | | | don't checkin the files. Instead create the files on the fly. Also back out 2 tests (testDownloadInIncognito, testfileRenamingWithIncognito) which unintentionally got checked in yesterday. Review URL: http://codereview.chromium.org/1702003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45345 0039d316-1c4b-4281-b951-d872f2087c98
* revert crazy_filenamesnirnimesh@chromium.org2010-04-211-1/+69
| | | | | | Review URL: http://codereview.chromium.org/1742001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45137 0039d316-1c4b-4281-b951-d872f2087c98
* Add a download test for crazy filenames.nirnimesh@chromium.org2010-04-201-0/+29
| | | | | | | | | | crazy filenames = long/short filenames, special chars, i18n chars. Test written by rohitbm Review URL: http://codereview.chromium.org/1717001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45090 0039d316-1c4b-4281-b951-d872f2087c98
* Enable history testnirnimesh@chromium.org2010-04-191-0/+1
| | | | | | Review URL: http://codereview.chromium.org/1558047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44977 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks for fetching history.nirnimesh@chromium.org2010-04-191-0/+38
| | | | | | | | | | | Adding a test which exercises the GetHistoryInfo() hooks. BUG=39275 TEST=python chrome/test/functional/history.py Review URL: http://codereview.chromium.org/1648015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44964 0039d316-1c4b-4281-b951-d872f2087c98
* testFileRenaming: Test file renaming when downloading a already-existing filenirnimesh@chromium.org2010-04-191-7/+43
| | | | | | | | Also, fix download problem when downloading a file. Since we use NavigateToURL() to trigger a download, it might take a while for it to actually start downloading and doing WaitForAllDownloadsToComplete() won't work until downloads actually start. Used WaitUntil for this. (WaitUntil has been reviewed earlier in http://codereview.chromium.org/1541009). Review URL: http://codereview.chromium.org/1575043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44924 0039d316-1c4b-4281-b951-d872f2087c98
* Add test for more special tabsnirnimesh@chromium.org2010-04-161-0/+4
| | | | | | Review URL: http://codereview.chromium.org/1594034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44741 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests to verify special tabs like chrome://history chrome://downloads, ...nirnimesh@chromium.org2010-04-132-1/+51
| | | | | | | | Most tests from krisr Review URL: http://codereview.chromium.org/1541009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44374 0039d316-1c4b-4281-b951-d872f2087c98
* Add generic "json dict" entry point for pyauto commands. Will preventjrg@chromium.org2010-04-022-3/+19
| | | | | | | | | | | | | | | | the need to modify the automation proxy anymore. New pyauto commands will only need to edit pyauto.py (to add a new SendJSONCommand() call) and browser_proxy.cc (to implement the other side). Contrast with the normal editing of ~8 files. Also added WaitForAllDownloadsToComplete using new JSON path. BUG=http://crbug.com/39274 Review URL: http://codereview.chromium.org/1547012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43436 0039d316-1c4b-4281-b951-d872f2087c98
* Add a downloads test.nirnimesh@chromium.org2010-04-011-0/+54
| | | | | | | | testZip: Download a zip and verify it with a precomputed checksum Review URL: http://codereview.chromium.org/1556008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43292 0039d316-1c4b-4281-b951-d872f2087c98
* Expose BrowserProxy and TabProxy methods directly to PyAutonirnimesh@chromium.org2010-03-291-0/+38
| | | | | | | | | | | | | - Swig scoped_refptr so as to make BrowserProxy and TabProxy objects directly visible and callable, although the use of scoped_refptr is transparent to pyauto user - Fix a crash in BookmarkModel.FindByID() while operating on leaf nodes - Expose methods to set preferences - Expose methods to handle http auth prompts - Add a pyauto test to verify the restore-on-start preference - Fix path so that pydoc continues to work on pyauto.py Review URL: http://codereview.chromium.org/1536001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42990 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests to verify bookmark ordering and nesting of groups.nirnimesh@chromium.org2010-03-241-0/+101
| | | | | | | | | testOrdering - from Srikanth testDeepNesting - from Ismail Review URL: http://codereview.chromium.org/1250004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42549 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few PyAuto tests for bookmarks.nirnimesh@chromium.org2010-03-241-0/+162
| | | | | | | | | | | | | | | The first two tests are from rohitbm and the rest from krisrs. testUnicodeStrings -- test bookmarks with unicode strings testSizes -- test bookmarks with different sized strings testAddingBookmarksToBarAndOther - add bookmarks to diff locations testAddingFoldersToBarAndOther -- add bookmark groups to diff locations testAddingFoldersWithChildrenToBarAndOther -- add bookmarks and groups to different locations Review URL: http://codereview.chromium.org/1191002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42417 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PyAuto crash when a script has multiple tests.nirnimesh@chromium.org2010-03-236-26/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL better maps C++ UITestSuite to python suite and C++ UITestBase to python testcase. All one-time initializations go in the suite while testcases are re-entrant now -- this is what fixes the crash. Also: - Cmdline flags to pyauto script (verbose, wait for attaching to debugger) - Establish the setup of sys.path, so that it's setup correctly and tests don't have to worry about it - Create facitlites for PYAUTO_TESTS files inside script dirs (say chrome/test/functional) which defines the tests to run. - Restructure such that pyauto scripts can be run standalone as well as using the pyauto.py script (like unittest.py). For example, a test could be fired in any of the below ways: # Run tests in a module ('bookmarks') python pyauto_functional.py bookmarks # Run tests in a test case ('bookmarks.BookmarksTest') python pyauto_functional.py bookmarks.BookmarksTest # Run a test ('bookmarks.BookmarksTest.testBasics') python pyauto_functional.py bookmarks.BookmarksTest.testBasics # Run directly from the test script python bookmarks.py python bookmarks.py bookmarks python bookmarks.py bookmarks.BookmarksTest python bookmarks.py bookmarks.BookmarksTest.testBasics BUG=32292 TEST=python chrome/test/functional/bookmarks.py Review URL: http://codereview.chromium.org/1126003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42350 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto hooks for bookmarks.jrg@chromium.org2010-03-122-0/+140
| | | | | | | | | | Get model, add/remove, add folder, reparent, change title/url. BUG=34492 Review URL: http://codereview.chromium.org/792003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41450 0039d316-1c4b-4281-b951-d872f2087c98
* Was already a 'wait for animation to complete'.jrg@chromium.org2010-03-061-0/+20
| | | | | | | | Added py interface to it. Review URL: http://codereview.chromium.org/668204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40812 0039d316-1c4b-4281-b951-d872f2087c98
* Add some bookmark bar hooks for pyauto.jrg@chromium.org2010-03-051-0/+23
| | | | | | | | | | | Refactor the implementation for x-platform happiness. Add simple pyauto script that uses it (but needs http://crbug.com32292 fixed before it works without tweaking). Review URL: http://codereview.chromium.org/670001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40782 0039d316-1c4b-4281-b951-d872f2087c98
* Create a placeholder for pyauto test scripts.nirnimesh@chromium.org2010-03-041-0/+18
Including a hello world script. Review URL: http://codereview.chromium.org/668004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40579 0039d316-1c4b-4281-b951-d872f2087c98