diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-18 02:00:08 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-18 02:00:08 +0000 |
commit | 8e10560e4236bb46b26093959d3f50ef1535cc47 (patch) | |
tree | 930b1a6e2e462b91c0e4a39b349fd27163a7956b /chrome/test/pyautolib | |
parent | e609bb94b0cf64a4373261854cfa45cfa87f6004 (diff) | |
download | chromium_src-8e10560e4236bb46b26093959d3f50ef1535cc47.zip chromium_src-8e10560e4236bb46b26093959d3f50ef1535cc47.tar.gz chromium_src-8e10560e4236bb46b26093959d3f50ef1535cc47.tar.bz2 |
Add pid to HTML5 notification information in pyauto hook.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4985006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib')
-rw-r--r-- | chrome/test/pyautolib/pyauto.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py index 8545f65..39d03a3 100644 --- a/chrome/test/pyautolib/pyauto.py +++ b/chrome/test/pyautolib/pyauto.py @@ -808,6 +808,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): executable path, pid info about the renderer/plugin/extension processes, window dimensions. (See sample below) + For notification pid info, see 'GetActiveNotifications'. + Returns: a dictionary @@ -1540,15 +1542,18 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): a list containing info about each active notification, with the first item in the list being the notification on the bottom of the notification stack. The 'content_url' key can refer to a URL or a data - URI. + URI. The 'pid' key-value pair may be omitted or invalid if the + notification is closing. SAMPLE: [ { u'content_url': u'data:text/html;charset=utf-8,%3C!DOCTYPE%l%3E%0Atm...' u'display_source': 'www.corp.google.com', - u'origin_url': 'http://www.corp.google.com/'}, + u'origin_url': 'http://www.corp.google.com/', + u'pid': 8505}, { u'content_url': 'http://www.gmail.com/special_notification.html', u'display_source': 'www.gmail.com', - u'origin_url': 'http://www.gmail.com/'}] + u'origin_url': 'http://www.gmail.com/', + u'pid': 9291}] Raises: pyauto_errors.JSONInterfaceError if the automation call returns an error. |