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

Side by Side Diff: tools/testing/dart/drt_updater.dart

Issue 15755017: Switch from DRT to content shell. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/get_archive.py ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // TODO(antonm): rename to something like test_runner_updater.
6
5 library drt_updater; 7 library drt_updater;
6 8
7 import "dart:async"; 9 import "dart:async";
8 import "dart:io"; 10 import "dart:io";
9 11
10 import "test_suite.dart"; 12 import "test_suite.dart";
11 13
12 class _DartiumUpdater { 14 class _DartiumUpdater {
13 String name; 15 String name;
14 String script; 16 String script;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 print('Failure updating $name'); 55 print('Failure updating $name');
54 print(' Exit code: ${result.exitCode}'); 56 print(' Exit code: ${result.exitCode}');
55 print(result.stdout); 57 print(result.stdout);
56 print(result.stderr); 58 print(result.stderr);
57 exit(1); 59 exit(1);
58 } 60 }
59 for (var callback in onUpdated ) callback(); 61 for (var callback in onUpdated ) callback();
60 } 62 }
61 } 63 }
62 64
63 _DartiumUpdater _dumpRenderTreeUpdater; 65 _DartiumUpdater _contentShellUpdater;
64 _DartiumUpdater _dartiumUpdater; 66 _DartiumUpdater _dartiumUpdater;
65 67
66 _DartiumUpdater runtimeUpdater(Map configuration) { 68 _DartiumUpdater runtimeUpdater(Map configuration) {
67 String runtime = configuration['runtime']; 69 String runtime = configuration['runtime'];
68 if (runtime == 'drt' && configuration['drt'] == '') { 70 if (runtime == 'drt' && configuration['drt'] == '') {
69 // Download the default DumpRenderTree from Google Storage. 71 // Download the default content shell from Google Storage.
70 if (_dumpRenderTreeUpdater == null) { 72 if (_contentShellUpdater == null) {
71 _dumpRenderTreeUpdater = new _DartiumUpdater('DumpRenderTree', 73 _contentShellUpdater = new _DartiumUpdater('Content Shell',
72 'get_archive.py', 'drt'); 74 'get_archive.py', 'drt');
73 } 75 }
74 return _dumpRenderTreeUpdater; 76 return _contentShellUpdater;
75 } else if (runtime == 'dartium' && configuration['dartium'] == '') { 77 } else if (runtime == 'dartium' && configuration['dartium'] == '') {
76 // Download the default Dartium from Google Storage. 78 // Download the default Dartium from Google Storage.
77 if (_dartiumUpdater == null) { 79 if (_dartiumUpdater == null) {
78 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py', 80 _dartiumUpdater = new _DartiumUpdater('Dartium Chrome', 'get_archive.py',
79 'dartium'); 81 'dartium');
80 } 82 }
81 return _dartiumUpdater; 83 return _dartiumUpdater;
82 } else { 84 } else {
83 return null; 85 return null;
84 } 86 }
85 } 87 }
OLDNEW
« no previous file with comments | « tools/get_archive.py ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698