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

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

Issue 1281623002: Fix a bunch of pub tests that started running "pub get". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 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 file 1 // Copyright (c) 2014, 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 import 'package:path/path.dart' as p; 5 import 'package:path/path.dart' as p;
6 import 'package:scheduled_test/scheduled_test.dart'; 6 import 'package:scheduled_test/scheduled_test.dart';
7 7
8 import '../descriptor.dart' as d; 8 import '../descriptor.dart' as d;
9 import '../serve/utils.dart'; 9 import '../serve/utils.dart';
10 import '../test_pub.dart'; 10 import '../test_pub.dart';
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 d.dir("two", [ 43 d.dir("two", [
44 d.dir("inner", [d.file("file.txt", "two")]) 44 d.dir("inner", [d.file("file.txt", "two")])
45 ]), 45 ]),
46 d.nothing("nope") 46 d.nothing("nope")
47 ]) 47 ])
48 ]) 48 ])
49 ]).validate(); 49 ]).validate();
50 }); 50 });
51 51
52 integration("serves subdirectories", () { 52 integration("serves subdirectories", () {
53 pubServe(args: [webOne, webTwoInner]); 53 pubServe(args: [webOne, webTwoInner], shouldGetFirst: true);
54 54
55 requestShouldSucceed("inner/file.txt", "one", root: webOne); 55 requestShouldSucceed("inner/file.txt", "one", root: webOne);
56 requestShouldSucceed("file.txt", "two", root: webTwoInner); 56 requestShouldSucceed("file.txt", "two", root: webTwoInner);
57 expectNotServed("web"); 57 expectNotServed("web");
58 expectNotServed(p.join("web", "three")); 58 expectNotServed(p.join("web", "three"));
59 59
60 endPubServe(); 60 endPubServe();
61 }); 61 });
62 } 62 }
OLDNEW
« no previous file with comments | « test/barback/directory_args_test.dart ('k') | test/dart2js/converts_isolate_entrypoint_in_web_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698