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

Unified Diff: sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_glob_test.dart

Issue 686363002: Support globs in $include and $exclude. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add tests Created 6 years, 2 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
Index: sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_glob_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_list_test.dart b/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_glob_test.dart
similarity index 87%
copy from sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_list_test.dart
copy to sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_glob_test.dart
index 52930390aa482a2a4bb397613e4bdffb877da832..812e7b4f6dbfc454c0785dd3d94e7b09f0bb9723 100644
--- a/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_list_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/exclusion/exclude_asset_glob_test.dart
@@ -11,17 +11,14 @@ import '../../serve/utils.dart';
main() {
initConfig();
withBarbackVersions("any", () {
- integration("excludes a list of assets", () {
+ integration("allows a glob to exclude", () {
d.dir(appPath, [
d.pubspec({
"name": "myapp",
"transformers": [
{
"myapp/src/transformer": {
- "\$exclude": [
- "web/foo.txt",
- "web/sub/foo.txt"
- ]
+ "\$exclude": "**/foo.txt"
}
}
]
@@ -42,8 +39,8 @@ main() {
pubServe();
requestShould404("foo.out");
- requestShould404("sub/foo.out");
requestShouldSucceed("bar.out", "bar.out");
+ requestShould404("sub/foo.out");
endPubServe();
});
});

Powered by Google App Engine
This is Rietveld 408576698