| Index: sdk/lib/_internal/pub_generated/test/serve/web_socket/url_to_asset_id_test.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/test/serve/web_socket/url_to_asset_id_test.dart b/sdk/lib/_internal/pub_generated/test/serve/web_socket/url_to_asset_id_test.dart
|
| index 95385945ce19e77b34d412b6018069a3a327636f..a5727725f0363d1b0b234bc306800da35b3ffee1 100644
|
| --- a/sdk/lib/_internal/pub_generated/test/serve/web_socket/url_to_asset_id_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/serve/web_socket/url_to_asset_id_test.dart
|
| @@ -1,9 +1,16 @@
|
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| library pub_tests;
|
| +
|
| import 'package:scheduled_test/scheduled_test.dart';
|
| import '../../descriptor.dart' as d;
|
| import '../../test_pub.dart';
|
| import '../utils.dart';
|
| +
|
| main() {
|
| + // TODO(rnystrom): Split into independent tests.
|
| initConfig();
|
| setUp(() {
|
| d.dir(
|
| @@ -11,21 +18,23 @@ main() {
|
| [
|
| d.libPubspec("foo", "0.0.1"),
|
| d.dir("lib", [d.file("foo.dart", "foo")])]).create();
|
| +
|
| d.dir(appPath, [d.appPubspec({
|
| "foo": {
|
| "path": "../foo"
|
| }
|
| }),
|
| - d.dir("lib", [d.file("myapp.dart", "myapp")]),
|
| + d.dir("lib", [d.file("myapp.dart", "myapp"),]),
|
| d.dir(
|
| "test",
|
| - [d.file("index.html", "<body>"), d.dir("sub", [d.file("bar.html", "bar")])]),
|
| + [d.file("index.html", "<body>"), d.dir("sub", [d.file("bar.html", "bar"),])]),
|
| d.dir(
|
| "web",
|
| [
|
| d.file("index.html", "<body>"),
|
| - d.dir("sub", [d.file("bar.html", "bar")])])]).create();
|
| + d.dir("sub", [d.file("bar.html", "bar"),])])]).create();
|
| });
|
| +
|
| integration("converts URLs to matching asset ids in web/", () {
|
| pubServe(shouldGetFirst: true);
|
| expectWebSocketResult("urlToAssetId", {
|
| @@ -36,6 +45,7 @@ main() {
|
| });
|
| endPubServe();
|
| });
|
| +
|
| integration(
|
| "converts URLs to matching asset ids in subdirectories of web/",
|
| () {
|
| @@ -48,6 +58,7 @@ main() {
|
| });
|
| endPubServe();
|
| });
|
| +
|
| integration("converts URLs to matching asset ids in test/", () {
|
| pubServe(shouldGetFirst: true);
|
| expectWebSocketResult("urlToAssetId", {
|
| @@ -58,6 +69,7 @@ main() {
|
| });
|
| endPubServe();
|
| });
|
| +
|
| integration(
|
| "converts URLs to matching asset ids in subdirectories of test/",
|
| () {
|
| @@ -70,9 +82,11 @@ main() {
|
| });
|
| endPubServe();
|
| });
|
| +
|
| integration(
|
| "converts URLs to matching asset ids in the entrypoint's lib/",
|
| () {
|
| + // Path in root package's lib/.
|
| pubServe(shouldGetFirst: true);
|
| expectWebSocketResult("urlToAssetId", {
|
| "url": getServerUrl("web", "packages/myapp/myapp.dart")
|
| @@ -82,7 +96,9 @@ main() {
|
| });
|
| endPubServe();
|
| });
|
| +
|
| integration("converts URLs to matching asset ids in a dependency's lib/", () {
|
| + // Path in lib/.
|
| pubServe(shouldGetFirst: true);
|
| expectWebSocketResult("urlToAssetId", {
|
| "url": getServerUrl("web", "packages/foo/foo.dart")
|
|
|