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

Side by Side Diff: test/serve/404_page_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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) 2013, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2013, 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 library pub_tests; 5 library pub_tests;
6 6
7 import 'package:scheduled_test/scheduled_test.dart'; 7 import 'package:scheduled_test/scheduled_test.dart';
8 8
9 import '../descriptor.dart' as d; 9 import '../descriptor.dart' as d;
10 import '../test_pub.dart'; 10 import '../test_pub.dart';
11 import 'utils.dart'; 11 import 'utils.dart';
12 12
13 main() { 13 main() {
14 initConfig();
15 setUp(() { 14 setUp(() {
16 d.dir(appPath, [ 15 d.dir(appPath, [
17 d.appPubspec() 16 d.appPubspec()
18 ]).create(); 17 ]).create();
19 }); 18 });
20 19
21 integration("the 404 page describes the missing asset", () { 20 integration("the 404 page describes the missing asset", () {
22 pubServe(); 21 pubServe();
23 22
24 scheduleRequest("packages/foo/missing.txt").then((response) { 23 scheduleRequest("packages/foo/missing.txt").then((response) {
(...skipping 13 matching lines...) Expand all
38 scheduleRequest("packages").then((response) { 37 scheduleRequest("packages").then((response) {
39 expect(response.statusCode, equals(404)); 38 expect(response.statusCode, equals(404));
40 39
41 // Should mention the asset that can't be found. 40 // Should mention the asset that can't be found.
42 expect(response.body, contains('"/packages"')); 41 expect(response.body, contains('"/packages"'));
43 }); 42 });
44 43
45 endPubServe(); 44 endPubServe();
46 }); 45 });
47 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698