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

Unified Diff: pkg/polymer/lib/deploy.dart

Issue 38333004: Fixes all canonicalization problems... all of them. Ok, not all of them, but at (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: pkg/polymer/lib/deploy.dart
diff --git a/pkg/polymer/lib/deploy.dart b/pkg/polymer/lib/deploy.dart
index a28869fdf586675450c885a5fe96c70b8261f0a4..13ed25cd7e09ddd42ceb5658148b5864b99af560 100644
--- a/pkg/polymer/lib/deploy.dart
+++ b/pkg/polymer/lib/deploy.dart
@@ -72,14 +72,15 @@ BarbackOptions _createTestOptions(String testFile, String outDir,
'your package root directory or a subdirectory.');
return null;
}
+ var packageName = readCurrentPackageFromPubspec(pubspecDir);
var phases = createDeployPhases(new TransformOptions(
entryPoints: [path.relative(testFile, from: pubspecDir)],
directlyIncludeJS: directlyIncludeJS,
contentSecurityPolicy: contentSecurityPolicy));
return new BarbackOptions(phases, outDir,
- currentPackage: '_test',
- packageDirs: {'_test' : pubspecDir},
+ currentPackage: packageName,
+ packageDirs: {packageName : pubspecDir},
transformTests: true);
}
« no previous file with comments | « pkg/polymer/example/canonicalization/test/canonicalization_test.html ('k') | pkg/polymer/lib/src/build/runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698