Chromium Code Reviews| OLD | NEW | 
|---|---|
| 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 #library('source_test'); | 5 #library('pubspec_test'); | 
| 
 
Jennifer Messerly
2012/06/06 00:23:52
Why not empty string? Random characters? Shakespea
 
Bob Nystrom
2012/06/06 20:44:48
Changed to:
#library("""Let those who are in favo
 
 | |
| 6 | 6 | 
| 7 #import('../../../lib/unittest/unittest.dart'); | 7 #import('../../../lib/unittest/unittest.dart'); | 
| 8 #import('../../pub/pubspec.dart'); | 8 #import('../../pub/pubspec.dart'); | 
| 9 #import('../../pub/source.dart'); | 9 #import('../../pub/source.dart'); | 
| 10 #import('../../pub/source_registry.dart'); | 10 #import('../../pub/source_registry.dart'); | 
| 11 #import('../../pub/utils.dart'); | 11 #import('../../pub/utils.dart'); | 
| 12 | 12 | 
| 13 class MockSource extends Source { | 13 class MockSource extends Source { | 
| 14 final String name = "mock"; | 14 final String name = "mock"; | 
| 15 final bool shouldCache = false; | 15 final bool shouldCache = false; | 
| (...skipping 17 matching lines...) Expand all Loading... | |
| 33 ''', sources); | 33 ''', sources); | 
| 34 }); | 34 }); | 
| 35 }); | 35 }); | 
| 36 }); | 36 }); | 
| 37 }); | 37 }); | 
| 38 } | 38 } | 
| 39 | 39 | 
| 40 throwsBadFormat(function) { | 40 throwsBadFormat(function) { | 
| 41 expectThrow(function, (e) => e is FormatException); | 41 expectThrow(function, (e) => e is FormatException); | 
| 42 } | 42 } | 
| OLD | NEW |