| 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 pubspec_test; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:pub/src/package.dart'; | 7 import 'package:pub/src/package.dart'; |
| 10 import 'package:pub/src/pubspec.dart'; | 8 import 'package:pub/src/pubspec.dart'; |
| 11 import 'package:pub/src/source.dart'; | 9 import 'package:pub/src/source.dart'; |
| 12 import 'package:pub/src/source/path.dart'; | 10 import 'package:pub/src/source/path.dart'; |
| 13 import 'package:pub/src/source_registry.dart'; | 11 import 'package:pub/src/source_registry.dart'; |
| 14 import 'package:pub_semver/pub_semver.dart'; | 12 import 'package:pub_semver/pub_semver.dart'; |
| 15 import 'package:test/test.dart'; | 13 import 'package:test/test.dart'; |
| 16 | 14 |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 test("uses the key if the value is null", () { | 531 test("uses the key if the value is null", () { |
| 534 var pubspec = new Pubspec.parse(''' | 532 var pubspec = new Pubspec.parse(''' |
| 535 executables: | 533 executables: |
| 536 command: | 534 command: |
| 537 ''', sources); | 535 ''', sources); |
| 538 expect(pubspec.executables['command'], equals('command')); | 536 expect(pubspec.executables['command'], equals('command')); |
| 539 }); | 537 }); |
| 540 }); | 538 }); |
| 541 }); | 539 }); |
| 542 } | 540 } |
| OLD | NEW |