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

Unified Diff: pkg/polymer/lib/src/transform/code_extractor.dart

Issue 22852013: Fix polymer transformers in windows. AssetId's always use posix style paths (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « pkg/pkg.status ('k') | pkg/polymer/lib/src/transform/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/transform/code_extractor.dart
diff --git a/pkg/polymer/lib/src/transform/code_extractor.dart b/pkg/polymer/lib/src/transform/code_extractor.dart
index 14ff6522c24422209b96626f8ac36687a6c1ce97..5f7058f01974f4dc335fbe5a05e797e577f45925 100644
--- a/pkg/polymer/lib/src/transform/code_extractor.dart
+++ b/pkg/polymer/lib/src/transform/code_extractor.dart
@@ -30,7 +30,7 @@ class InlineCodeExtractor extends Transformer {
!tag.attributes.containsKey('src')) {
// TODO(sigmund): should we automatically include a library directive
// if it doesn't have one?
- var filename = path.basename(inputId.path);
+ var filename = path.url.basename(inputId.path);
tag.attributes['src'] = '$filename.$count.dart';
var textContent = tag.nodes.first;
var id = inputId.addExtension('.$count.dart');
« no previous file with comments | « pkg/pkg.status ('k') | pkg/polymer/lib/src/transform/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698