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

Unified Diff: test/transformer_test.dart

Issue 906413002: support multiple entry points and only html entry points (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: add $include to transformer to optimize it a bit Created 5 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
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/transformer_test.dart
diff --git a/test/transformer_test.dart b/test/transformer_test.dart
index a427e70cb417f4eeccedbc081e25e19dbe750ca5..02b749d333a76826511b504d5a422e9ad42acb6a 100644
--- a/test/transformer_test.dart
+++ b/test/transformer_test.dart
@@ -10,10 +10,10 @@ import 'package:unittest/compact_vm_config.dart';
main() {
useCompactVMConfiguration();
- var transformer = new InitializeTransformer(
- 'web/index.dart', 'web/index.bootstrap.dart', 'web/index.html');
+ var htmlTransformer = new InitializeTransformer(['web/*.html']);
+ var dartTransformer = new InitializeTransformer(['web/index.dart']);
- testPhases('basic', [[transformer]], {
+ testPhases('basic', [[htmlTransformer]], {
'a|web/index.html': '''
<html><head></head><body>
<script type="application/dart" src="index.dart"></script>
@@ -67,10 +67,10 @@ main() {
}, {
'a|web/index.html': '''
<html><head></head><body>
- <script type="application/dart" src="index.bootstrap.dart"></script>
+ <script type="application/dart" src="index.initialize.dart"></script>
</body></html>'''.replaceAll(' ', ''),
- 'a|web/index.bootstrap.dart': '''
+ 'a|web/index.initialize.dart': '''
import 'package:initialize/src/static_loader.dart';
import 'package:initialize/initialize.dart';
import 'index.dart' as i0;
@@ -99,7 +99,7 @@ main() {
'''.replaceAll(' ', '')
}, []);
- testPhases('constructor arguments', [[transformer]], {
+ testPhases('constructor arguments', [[dartTransformer]], {
'a|web/index.dart': '''
@DynamicInit(foo)
@DynamicInit(Foo.foo)
@@ -129,7 +129,7 @@ main() {
'initialize|lib/initialize.dart': mockInitialize,
'test_initializers|lib/common.dart': commonInitializers,
}, {
- 'a|web/index.bootstrap.dart': '''
+ 'a|web/index.initialize.dart': '''
import 'package:initialize/src/static_loader.dart';
import 'package:initialize/initialize.dart';
import 'index.dart' as i0;
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698