| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 # | 4 # |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import platform | 7 import platform |
| 8 import re | 8 import re |
| 9 import shutil | 9 import shutil |
| 10 import subprocess | 10 import subprocess |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 elif 'ie' in flags or 'explorer' in flags or 'internet-explorer' in flags: | 442 elif 'ie' in flags or 'explorer' in flags or 'internet-explorer' in flags: |
| 443 browser_flag = 'ie' | 443 browser_flag = 'ie' |
| 444 | 444 |
| 445 selenium_location = os.path.join(self.root_path, 'tools', 'testing', | 445 selenium_location = os.path.join(self.root_path, 'tools', 'testing', |
| 446 'run_selenium.py') | 446 'run_selenium.py') |
| 447 | 447 |
| 448 html_output_file = os.path.join(self.GetHtmlPath(), self.GetHtmlName()) | 448 html_output_file = os.path.join(self.GetHtmlPath(), self.GetHtmlName()) |
| 449 f = open(html_output_file, 'w') | 449 f = open(html_output_file, 'w') |
| 450 f.write(self.GetHtmlContents()) | 450 f.write(self.GetHtmlContents()) |
| 451 f.close() | 451 f.close() |
| 452 return [selenium_location, html_output_file, browser_flag] | 452 return [selenium_location, '-out', html_output_file, '-browser', |
| 453 browser_flag] |
| 453 | 454 |
| 454 | 455 |
| 455 class StandaloneArchitecture(Architecture): | 456 class StandaloneArchitecture(Architecture): |
| 456 """Base class for architectures that run tests without a browser.""" | 457 """Base class for architectures that run tests without a browser.""" |
| 457 | 458 |
| 458 def __init__(self, root_path, arch, mode, component, test): | 459 def __init__(self, root_path, arch, mode, component, test): |
| 459 super(StandaloneArchitecture, self).__init__(root_path, arch, mode, componen
t, | 460 super(StandaloneArchitecture, self).__init__(root_path, arch, mode, componen
t, |
| 460 test) | 461 test) |
| 461 | 462 |
| 462 def GetExecutable(self): | 463 def GetExecutable(self): |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 return WebDriverArchitecture(root_path, arch, mode, component, test) | 563 return WebDriverArchitecture(root_path, arch, mode, component, test) |
| 563 | 564 |
| 564 elif component in ['vm', 'frog', 'frogsh']: | 565 elif component in ['vm', 'frog', 'frogsh']: |
| 565 return StandaloneArchitecture(root_path, arch, mode, component, test) | 566 return StandaloneArchitecture(root_path, arch, mode, component, test) |
| 566 | 567 |
| 567 elif component == 'leg': | 568 elif component == 'leg': |
| 568 return LegArchitecture(root_path, arch, mode, component, test) | 569 return LegArchitecture(root_path, arch, mode, component, test) |
| 569 | 570 |
| 570 elif component == 'dartc': | 571 elif component == 'dartc': |
| 571 return DartcArchitecture(root_path, arch, mode, component, test) | 572 return DartcArchitecture(root_path, arch, mode, component, test) |
| OLD | NEW |