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

Unified Diff: pkg/dev_compiler/lib/src/compiler/code_generator.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 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
« no previous file with comments | « no previous file | pkg/dev_compiler/test-main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/code_generator.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
index 6cc873085de59bfb706dd49027afe90186225141..a642fe4da82618211f0ff3717842618acf9f03c7 100644
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
@@ -5460,8 +5460,9 @@ String jsLibraryName(String libraryRoot, LibraryElement library) {
// E.g., "foo/bar.dart" and "foo$47bar.dart" would collide.
qualifiedPath = uri.pathSegments.skip(1).join(customSeparator);
} else if (isWithin(libraryRoot, uri.toFilePath())) {
- qualifiedPath =
- fromUri(uri).substring(libraryRoot.length).replaceAll(separator, customSeparator);
+ qualifiedPath = fromUri(uri)
+ .substring(libraryRoot.length)
+ .replaceAll(separator, customSeparator);
} else {
// We don't have a unique name.
throw 'Invalid library root. $libraryRoot does not contain ${uri
« no previous file with comments | « no previous file | pkg/dev_compiler/test-main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698