diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 01:26:46 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 01:26:46 +0000 |
commit | 3c2216cd87438196389b5076095a5f1d627b1ca2 (patch) | |
tree | cbe1a1d4746b21503dd9e7213a81201ac14e6320 /o3d/tests/selenium/selenium_utilities.py | |
parent | f0ef2da98a8bc281600d565ff7788f2bec129d9f (diff) | |
download | chromium_src-3c2216cd87438196389b5076095a5f1d627b1ca2.zip chromium_src-3c2216cd87438196389b5076095a5f1d627b1ca2.tar.gz chromium_src-3c2216cd87438196389b5076095a5f1d627b1ca2.tar.bz2 |
Change our selenium tests to call
window.o3d_prepForSelenium if it exists and
fix becahdemo to use this feature.
Review URL: http://codereview.chromium.org/155191
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/tests/selenium/selenium_utilities.py')
-rw-r--r-- | o3d/tests/selenium/selenium_utilities.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/o3d/tests/selenium/selenium_utilities.py b/o3d/tests/selenium/selenium_utilities.py index 84444e1..a5d5b3d 100644 --- a/o3d/tests/selenium/selenium_utilities.py +++ b/o3d/tests/selenium/selenium_utilities.py @@ -269,6 +269,9 @@ class SeleniumTestCase(unittest.TestCase): # wait for it to initialize. self.session.wait_for_condition(ready_condition, timeout) + self.session.run_script( + "if (window.o3d_prepForSelenium) { window.o3d_prepForSelenium(); }") + if assertion: self.assertEqual("true", self.session.get_eval(assertion)) |