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

Side by Side Diff: tools/testing/architecture.py

Issue 8920009: Add Safari to the list of browsers we test on a regular basis. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 component, test) 465 component, test)
466 466
467 def GetRunCommand(self, fatal_static_type_errors=False): 467 def GetRunCommand(self, fatal_static_type_errors=False):
468 """Returns a command line to execute for the test.""" 468 """Returns a command line to execute for the test."""
469 flags = self.vm_options 469 flags = self.vm_options
470 browser_flag = 'chrome' 470 browser_flag = 'chrome'
471 if 'ff' in flags or 'firefox' in flags: 471 if 'ff' in flags or 'firefox' in flags:
472 browser_flag = 'ff' 472 browser_flag = 'ff'
473 elif 'ie' in flags or 'explorer' in flags or 'internet-explorer' in flags: 473 elif 'ie' in flags or 'explorer' in flags or 'internet-explorer' in flags:
474 browser_flag = 'ie' 474 browser_flag = 'ie'
475 elif 'safari' in flags:
476 browser_flag = 'safari'
475 477
476 selenium_location = os.path.join(self.root_path, 'tools', 'testing', 478 selenium_location = os.path.join(self.root_path, 'tools', 'testing',
477 'run_selenium.py') 479 'run_selenium.py')
478 480
479 html_output_file = os.path.join(self.GetHtmlPath(), self.GetHtmlName()) 481 html_output_file = os.path.join(self.GetHtmlPath(), self.GetHtmlName())
480 f = open(html_output_file, 'w') 482 f = open(html_output_file, 'w')
481 f.write(self.GetHtmlContents()) 483 f.write(self.GetHtmlContents())
482 f.close() 484 f.close()
483 return [selenium_location, '--out', html_output_file, '--browser', 485 return [selenium_location, '--out', html_output_file, '--browser',
484 browser_flag] 486 browser_flag]
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 return WebDriverArchitecture(root_path, arch, mode, component, test) 596 return WebDriverArchitecture(root_path, arch, mode, component, test)
595 597
596 elif component in ['vm', 'frog', 'frogsh']: 598 elif component in ['vm', 'frog', 'frogsh']:
597 return StandaloneArchitecture(root_path, arch, mode, component, test) 599 return StandaloneArchitecture(root_path, arch, mode, component, test)
598 600
599 elif component == 'leg': 601 elif component == 'leg':
600 return LegArchitecture(root_path, arch, mode, component, test) 602 return LegArchitecture(root_path, arch, mode, component, test)
601 603
602 elif component == 'dartc': 604 elif component == 'dartc':
603 return DartcArchitecture(root_path, arch, mode, component, test) 605 return DartcArchitecture(root_path, arch, mode, component, test)
OLDNEW
« no previous file with comments | « no previous file | tools/testing/perf_testing/create_graph.py » ('j') | tools/testing/run_selenium.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698