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

Unified Diff: tests/standalone/packages_file_test.dart

Issue 2013353003: Fix analyzer warnings in packages_file_test.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/packages_file_test.dart
diff --git a/tests/standalone/packages_file_test.dart b/tests/standalone/packages_file_test.dart
index cd2f662239d0b2cf317e89c8e2e19a0a040eb509..4116ce68b1fbf137a8528107726a215bf41b6785 100644
--- a/tests/standalone/packages_file_test.dart
+++ b/tests/standalone/packages_file_test.dart
@@ -4,10 +4,8 @@
import "dart:async";
import "dart:io";
-import "dart:isolate";
import "dart:convert" show JSON;
import "package:path/path.dart" as p;
-import "package:expect/expect.dart";
import "package:async_helper/async_helper.dart";
main() async {
@@ -22,6 +20,7 @@ main() async {
await test("http: no resolution", "%http/main.dart",
http: {"main": testMain},
expect: {
+ "iroot": "%http/packages/",
// "foo": null,
"foo/": "%http/packages/foo/",
"foo/bar": "%http/packages/foo/bar",
@@ -246,14 +245,14 @@ Future test(String name, String main,
"pconf": null,
"proot": null,
"iconf": null,
- "iconf": null,
+ "iroot": null,
// "foo": null,
"foo/": null,
"foo/bar": null,
"foo.x": "qux",
}..addAll(expect);
match(JSON.decode(output), expects, fixPaths, name);
- } catch (e) {
+ } catch (e, s) {
// Unexpected error calling runDart or parsing the result.
// Report it and continue.
print("ERROR running $name: $e\n$s");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698