OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """The testing Environment class.""" | 5 """The testing Environment class.""" |
6 | 6 |
7 import logging | 7 import logging |
8 import shutil | 8 import shutil |
9 import sys | 9 import sys |
10 import time | 10 import time |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 except Exception: | 400 except Exception: |
401 successful = False | 401 successful = False |
402 error = traceback.format_exc() | 402 error = traceback.format_exc() |
403 self.tests_results.append(TestResult(websitetest.name, "prompt", | 403 self.tests_results.append(TestResult(websitetest.name, "prompt", |
404 successful, escape(error))) | 404 successful, escape(error))) |
405 | 405 |
406 def Quit(self): | 406 def Quit(self): |
407 """Closes the tests.""" | 407 """Closes the tests.""" |
408 # Close the webdriver. | 408 # Close the webdriver. |
409 self.driver.quit() | 409 self.driver.quit() |
OLD | NEW |