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

Unified Diff: sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_with_line_test.dart

Issue 210643002: Re-add missing pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_with_line_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/web_socket/path_to_urls_with_line_test.dart b/sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_with_line_test.dart
similarity index 68%
copy from sdk/lib/_internal/pub/test/serve/web_socket/path_to_urls_with_line_test.dart
copy to sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_with_line_test.dart
index 04bfda5abea082070c19fb78f0f7089888028863..4c5cb4d14417ddfe3a85d2eefbce885c45c879d7 100644
--- a/sdk/lib/_internal/pub/test/serve/web_socket/path_to_urls_with_line_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_with_line_test.dart
@@ -4,33 +4,33 @@
library pub_tests;
-import 'package:path/path.dart' as p;
import 'package:scheduled_test/scheduled_test.dart';
-
import '../../descriptor.dart' as d;
import '../../test_pub.dart';
import '../utils.dart';
main() {
initConfig();
- integration("pathToUrls provides output line if given source", () {
+ integration("provides output line number if given source one", () {
d.dir(appPath, [
d.appPubspec(),
d.dir("web", [
- d.file("main.dart", "main"),
+ d.file("main.dart", "main")
])
]).create();
pubServe();
- expectWebSocketResult("pathToUrls", {
- "path": p.join("web", "main.dart"),
+ // Paths in web/.
+ expectWebSocketResult("urlToAssetId", {
+ "url": getServerUrl("web", "main.dart"),
"line": 12345
}, {
- "urls": [getServerUrl("web", "main.dart")],
+ "package": "myapp",
+ "path": "web/main.dart",
"line": 12345
});
endPubServe();
});
-}
+}
« no previous file with comments | « sdk/lib/_internal/pub/test/serve/web_socket/url_to_asset_id_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698