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() { |
}); |
} |
+ |