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

Unified Diff: tests/selenium/javascript_unit_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/javascript_unit_test_list.txt ('k') | tests/selenium/main.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/selenium/javascript_unit_tests.py
===================================================================
--- tests/selenium/javascript_unit_tests.py (revision 26154)
+++ tests/selenium/javascript_unit_tests.py (working copy)
@@ -49,10 +49,10 @@
class JavaScriptUnitTests(selenium_utilities.SeleniumTestCase):
"""Runs the JavaScript unit tests for the sample utilities."""
- def __init__(self, name, session, browser, path_to_html, test_type=None,
- sample_path=None, options=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):
@@ -275,7 +275,7 @@
s.run_script("window.g_clock = " + str(clock * 3.14159 * 2.5 + 0.5))
self.assertTrue(
selenium_utilities.TakeScreenShot(s, self.browser, "window.g_client",
- "cullingzsort" + str(clock)))
+ "cullingzsort" + str(clock + 1)))
s.run_script("g_framesRendered = 0")
while int(s.get_eval("window.g_framesRendered")) < 3:
s.run_script("window.g_client.render()")
« no previous file with comments | « tests/selenium/javascript_unit_test_list.txt ('k') | tests/selenium/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698