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

Side by Side Diff: lib/src/executable.dart

Issue 1088933006: Add IE support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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
« no previous file with comments | « lib/src/backend/test_platform.dart ('k') | lib/src/runner/browser/internet_explorer.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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(nweiz): This is under lib so that it can be used by the unittest dummy 5 // TODO(nweiz): This is under lib so that it can be used by the unittest dummy
6 // package. Once that package is no longer being updated, move this back into 6 // package. Once that package is no longer being updated, move this back into
7 // bin. 7 // bin.
8 library test.executable; 8 library test.executable;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (transformer is String) return transformer == 'test/pub_serve'; 70 if (transformer is String) return transformer == 'test/pub_serve';
71 if (transformer is! Map) return false; 71 if (transformer is! Map) return false;
72 if (transformer.keys.length != 1) return false; 72 if (transformer.keys.length != 1) return false;
73 return transformer.keys.single == 'test/pub_serve'; 73 return transformer.keys.single == 'test/pub_serve';
74 }); 74 });
75 } 75 }
76 76
77 void main(List<String> args) { 77 void main(List<String> args) {
78 var allPlatforms = TestPlatform.all.toList(); 78 var allPlatforms = TestPlatform.all.toList();
79 if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari); 79 if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari);
80 if (!Platform.isWindows) allPlatforms.remove(TestPlatform.internetExplorer);
80 81
81 _parser.addFlag("help", abbr: "h", negatable: false, 82 _parser.addFlag("help", abbr: "h", negatable: false,
82 help: "Shows this usage information."); 83 help: "Shows this usage information.");
83 _parser.addFlag("version", negatable: false, 84 _parser.addFlag("version", negatable: false,
84 help: "Shows the package's version."); 85 help: "Shows the package's version.");
85 _parser.addOption("package-root", hide: true); 86 _parser.addOption("package-root", hide: true);
86 _parser.addOption("name", 87 _parser.addOption("name",
87 abbr: 'n', 88 abbr: 'n',
88 help: 'A substring of the name of the test to run.\n' 89 help: 'A substring of the name of the test to run.\n'
89 'Regular expression syntax is supported.'); 90 'Regular expression syntax is supported.');
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 if (description is! Map) return false; 360 if (description is! Map) return false;
360 var path = description["path"]; 361 var path = description["path"];
361 if (path is! String) return false; 362 if (path is! String) return false;
362 363
363 print("$version (from $path)"); 364 print("$version (from $path)");
364 return true; 365 return true;
365 366
366 default: return false; 367 default: return false;
367 } 368 }
368 } 369 }
OLDNEW
« no previous file with comments | « lib/src/backend/test_platform.dart ('k') | lib/src/runner/browser/internet_explorer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698