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

Side by Side Diff: test/barback/utils.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Code review changes Created 5 years, 7 months 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 import 'package:pub/src/exit_codes.dart' as exit_codes;
5 import 'package:scheduled_test/scheduled_test.dart'; 6 import 'package:scheduled_test/scheduled_test.dart';
6 7
7 import '../../lib/src/exit_codes.dart' as exit_codes;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 9
10 /// Runs separate integration tests for "pub build", "pub serve", and 10 /// Runs separate integration tests for "pub build", "pub serve", and
11 /// "pub build --format json" and validates that in all cases, it fails with 11 /// "pub build --format json" and validates that in all cases, it fails with
12 /// an expected error message and exits with [exitCode]. 12 /// an expected error message and exits with [exitCode].
13 /// 13 ///
14 /// The integrations assume set up is already done, so you will likely want to 14 /// The integrations assume set up is already done, so you will likely want to
15 /// call [setUp] before this. 15 /// call [setUp] before this.
16 /// 16 ///
17 /// If [error] is provided, then both pub build and pub serve should exit with 17 /// If [error] is provided, then both pub build and pub serve should exit with
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }, 51 },
52 exitCode: exitCode); 52 exitCode: exitCode);
53 }); 53 });
54 54
55 integration("serve fails $description", () { 55 integration("serve fails $description", () {
56 schedulePub(args: ["serve"]..addAll(args), 56 schedulePub(args: ["serve"]..addAll(args),
57 error: serveExpectation, 57 error: serveExpectation,
58 exitCode: exitCode); 58 exitCode: exitCode);
59 }); 59 });
60 } 60 }
OLDNEW
« no previous file with comments | « test/barback/fails_on_overlapping_directories_test.dart ('k') | test/build/outputs_error_to_json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698