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

Side by Side Diff: test/serve/web_socket/path_to_urls_errors_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, 5 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 library pub_tests; 5 library pub_tests;
6 6
7 import 'package:json_rpc_2/error_code.dart' as rpc_error_code; 7 import 'package:json_rpc_2/error_code.dart' as rpc_error_code;
8 import 'package:path/path.dart' as p; 8 import 'package:path/path.dart' as p;
9 9
10 import '../../descriptor.dart' as d; 10 import '../../descriptor.dart' as d;
11 import '../../test_pub.dart'; 11 import '../../test_pub.dart';
12 import '../utils.dart'; 12 import '../utils.dart';
13 13
14 main() { 14 main() {
15 // TODO(rnystrom): Split into independent tests. 15 // TODO(rnystrom): Split into independent tests.
16 initConfig();
17 integration("pathToUrls errors on bad inputs", () { 16 integration("pathToUrls errors on bad inputs", () {
18 d.dir("foo", [ 17 d.dir("foo", [
19 d.libPubspec("foo", "1.0.0"), 18 d.libPubspec("foo", "1.0.0"),
20 d.dir("web", [ 19 d.dir("web", [
21 d.file("foo.txt", "foo") 20 d.file("foo.txt", "foo")
22 ]) 21 ])
23 ]).create(); 22 ]).create();
24 23
25 d.dir(appPath, [ 24 d.dir(appPath, [
26 d.appPubspec({"foo": {"path": "../foo"}}), 25 d.appPubspec({"foo": {"path": "../foo"}}),
(...skipping 26 matching lines...) Expand all
53 expectNotServed(p.join("..", "foo", "web", "foo.txt")); 52 expectNotServed(p.join("..", "foo", "web", "foo.txt"));
54 53
55 endPubServe(); 54 endPubServe();
56 }); 55 });
57 } 56 }
58 57
59 void expectNotServed(String path) { 58 void expectNotServed(String path) {
60 expectWebSocketError("pathToUrls", {"path": path}, NOT_SERVED, 59 expectWebSocketError("pathToUrls", {"path": path}, NOT_SERVED,
61 'Asset path "$path" is not currently being served.'); 60 'Asset path "$path" is not currently being served.');
62 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698