 Chromium Code Reviews
 Chromium Code Reviews Issue 1215833002:
  Use the new test runner.  (Closed) 
  Base URL: git@github.com:dart-lang/pub.git@master
    
  
    Issue 1215833002:
  Use the new test runner.  (Closed) 
  Base URL: git@github.com:dart-lang/pub.git@master| Index: test/pubspec_test.dart | 
| diff --git a/test/pubspec_test.dart b/test/pubspec_test.dart | 
| index 93c067da959a63d3908768ef1f5b8d1524421644..400c7d0baef17add664643f52206bd7fdc65e361 100644 | 
| --- a/test/pubspec_test.dart | 
| +++ b/test/pubspec_test.dart | 
| @@ -12,7 +12,7 @@ import 'package:pub/src/source.dart'; | 
| import 'package:pub/src/source/path.dart'; | 
| import 'package:pub/src/source_registry.dart'; | 
| import 'package:pub_semver/pub_semver.dart'; | 
| -import 'package:unittest/unittest.dart'; | 
| +import 'package:test/test.dart'; | 
| import 'test_pub.dart'; | 
| @@ -41,21 +41,20 @@ class MockSource extends Source { | 
| } | 
| main() { | 
| - initConfig(); | 
| group('parse()', () { | 
| var sources = new SourceRegistry(); | 
| sources.register(new MockSource()); | 
| sources.register(new PathSource()); | 
| var throwsPubspecException = | 
| - throwsA(new isInstanceOf<PubspecException>('PubspecException')); | 
| + throwsA(new isInstanceOf<PubspecException>()); | 
| 
Bob Nystrom
2015/06/26 23:04:10
Indent +4.
 | 
| expectPubspecException(String contents, fn(Pubspec pubspec), | 
| [String expectedContains]) { | 
| var expectation = throwsPubspecException; | 
| if (expectedContains != null) { | 
| expectation = throwsA(allOf( | 
| - new isInstanceOf<PubspecException>('PubspecException'), | 
| + new isInstanceOf<PubspecException>(), | 
| predicate((error) => error.message.contains(expectedContains)))); | 
| } |