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

Unified Diff: tests/selenium/samples_tests.py

Issue 212031: Changed selenium tests to recover from test crashes/hangs. Divided perceptual... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 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 | « tests/selenium/sample_list.txt ('k') | tests/selenium/selenium_constants.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/selenium/samples_tests.py
===================================================================
--- tests/selenium/samples_tests.py (revision 26154)
+++ tests/selenium/samples_tests.py (working copy)
@@ -59,10 +59,10 @@
# TODO: Change to correct object class when NPAPI class is exposed.
SELENIUM_OBJ_TYPE = "[object HTMLObjectElement]"
- def __init__(self, name, session, browser, path_to_html, test_type=None,
+ def __init__(self, name, browser, path_to_html, test_type=None,
sample_path=None, options=None):
selenium_utilities.SeleniumTestCase.__init__(
- self, name, session, browser, path_to_html, test_type, sample_path,
+ self, name, browser, path_to_html, test_type, sample_path,
options)
def GenericTest(self):
@@ -314,7 +314,7 @@
s.select("//select[@id='shaderSelect']", ("index=%d" % shader))
# Take screenshot
self.assertTrue(selenium_utilities.TakeScreenShot(
- s, self.browser, "g_client", ("shader-test%d" % shader)))
+ s, self.browser, "g_client", "shader-test%d" % (shader + 1)))
def TestSampleErrorTextureSmall(self):
"""Tests error-texture.html."""
« no previous file with comments | « tests/selenium/sample_list.txt ('k') | tests/selenium/selenium_constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698