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

Side by Side Diff: utils/tests/testrunner/testrunner_test.dart

Issue 46673003: Remove uses of Options from utils directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « utils/tests/string_encoding/utf8_benchmarks.dart ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library testrunner_test; 5 library testrunner_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 }); 97 });
98 return rtn; 98 return rtn;
99 } 99 }
100 100
101 // A useful function to quickly disable a group of tests; just 101 // A useful function to quickly disable a group of tests; just
102 // replace group() with skip_group(). 102 // replace group() with skip_group().
103 skip_group(_1,_2) {} 103 skip_group(_1,_2) {}
104 104
105 main() { 105 main() {
106 var opt = new Options(); 106 dart = Platform.executable;
107 dart = opt.executable;
108 var idx = dart.indexOf('dart-sdk'); 107 var idx = dart.indexOf('dart-sdk');
109 if (idx < 0) { 108 if (idx < 0) {
110 print("Please run using the dart executable from the Dart SDK"); 109 print("Please run using the dart executable from the Dart SDK");
111 exit(-1); 110 exit(-1);
112 } 111 }
113 var _ = Platform.pathSeparator; 112 var _ = Platform.pathSeparator;
114 var testrunner = '../../testrunner/testrunner.dart' 113 var testrunner = '../../testrunner/testrunner.dart'
115 .replaceAll('/', Platform.pathSeparator); 114 .replaceAll('/', Platform.pathSeparator);
116 115
117 group("list tests", () { 116 group("list tests", () {
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 '--server', 512 '--server',
514 '--port=3456', 513 '--port=3456',
515 '--root=${Directory.current.path}', 514 '--root=${Directory.current.path}',
516 'http_client_tests' ], 515 'http_client_tests' ],
517 [ '?PASS .*/http_client_tests/http_client_test.dart test1', 516 [ '?PASS .*/http_client_tests/http_client_test.dart test1',
518 '?PASS .*/http_client_tests/http_client_test.dart test2' ]); 517 '?PASS .*/http_client_tests/http_client_test.dart test2' ]);
519 }); 518 });
520 }); 519 });
521 } 520 }
522 521
OLDNEW
« no previous file with comments | « utils/tests/string_encoding/utf8_benchmarks.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698