mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Fix conversion from Uri to File in test, to use File.fromUri().
BUG= R=wibling@google.com Review URL: https://codereview.chromium.org//1333313002 .
This commit is contained in:
parent
d044fc84ee
commit
e14568cf83
|
@ -11,8 +11,8 @@ import 'package:yaml/yaml.dart';
|
||||||
/// This dartdoc helps remove a warning for the unused import on [LookupMap].
|
/// This dartdoc helps remove a warning for the unused import on [LookupMap].
|
||||||
main() {
|
main() {
|
||||||
test('validate version number matches', () {
|
test('validate version number matches', () {
|
||||||
var pubspecPath = Platform.script.resolve('../pubspec.yaml').path;
|
var pubspec = Platform.script.resolve('../pubspec.yaml');
|
||||||
var yaml = loadYaml(new File(pubspecPath).readAsStringSync());
|
var yaml = loadYaml(new File.fromUri(pubspec).readAsStringSync());
|
||||||
var version1 = yaml['version'];
|
var version1 = yaml['version'];
|
||||||
var library = currentMirrorSystem().findLibrary(#lookup_map);
|
var library = currentMirrorSystem().findLibrary(#lookup_map);
|
||||||
var version2 = library.getField(new Symbol('_version')).reflectee;
|
var version2 = library.getField(new Symbol('_version')).reflectee;
|
||||||
|
|
Loading…
Reference in a new issue