Skip to content

Test package APIs rather than resource APIs. #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 29, 2016
Merged

Test package APIs rather than resource APIs. #1451

merged 2 commits into from
Sep 29, 2016

Conversation

nex3
Copy link
Member

@nex3 nex3 commented Sep 27, 2016

Closes #1446

@@ -0,0 +1,99 @@
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2016

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

cachePath,
"hosted/localhost%58${await globalPackageServer.port}/bar-1.0.0/"
"lib/resource.txt"))
.toString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three statements got wrapped an awful lot. It might be cleaner to declare little local variables for each path.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

print(await Isolate.resolvePackageUri(
Uri.parse('package:foo/resource.txt')));
}
""")
Copy link
Member

@munificent munificent Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same string as the above script, right? If so, declare a constant for it. Ideally stick it somewhere that the run/package_api_test can get to it too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I didn't share it across files, though, because I couldn't think of a nice semantic thing to call it.

@nex3 nex3 merged commit 64a4813 into master Sep 29, 2016
@nex3 nex3 deleted the resource-tests branch September 29, 2016 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants