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

Unified Diff: pkg/polymer/test/build/import_inliner_test.dart

Issue 180933002: combine script extractor and import inliner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: refactor Created 6 years, 10 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/test/build/import_inliner_test.dart
diff --git a/pkg/polymer/test/build/import_inliner_test.dart b/pkg/polymer/test/build/import_inliner_test.dart
index f66500322399d80d2c44aae3bd54073ddfb3e28e..14e56059c9e39c50c86a7ef40da3c7cb25cc8c62 100644
--- a/pkg/polymer/test/build/import_inliner_test.dart
+++ b/pkg/polymer/test/build/import_inliner_test.dart
@@ -8,15 +8,17 @@ import 'package:polymer/src/build/common.dart';
import 'package:polymer/src/build/import_inliner.dart';
import 'package:unittest/compact_vm_config.dart';
import 'package:unittest/unittest.dart';
-
import 'common.dart';
+part 'code_extractor.dart';
+
final phases = [[new ImportInliner(new TransformOptions())]];
void main() {
useCompactVMConfiguration();
group('rel=import', importTests);
group('rel=stylesheet', stylesheetTests);
+ group('script type=dart', codeExtractorTests);
}
void importTests() {
@@ -109,9 +111,10 @@ void importTests() {
'<script src="second.js"></script>'
'<script>/*third*/</script>'
'<polymer-element>2</polymer-element>'
- '<script type="application/dart">/*forth*/</script>'
+ '<script type="application/dart" src="test.html.0.dart"></script>'
'</body></html>',
'a|web/test.html.scriptUrls': '[]',
+ 'a|web/test.html.0.dart': 'library web_test_html_0;\n/*forth*/',
'a|web/test2.html':
'<!DOCTYPE html><html><head><script>/*third*/</script>'
'</head><body><polymer-element>2</polymer-element></html>',
@@ -666,3 +669,4 @@ void stylesheetTests() {
});
}
+
« pkg/polymer/test/build/code_extractor.dart ('K') | « pkg/polymer/test/build/code_extractor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698