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

Side by Side Diff: test/build/transformer_test.dart

Issue 950883003: fix bug in scriptcompactors bootstrap and added transform function which can be used by other trans… (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 library web_components.test.build.transformer_test; 4 library web_components.test.build.transformer_test;
5 5
6 import 'package:code_transformers/tests.dart'; 6 import 'package:code_transformers/tests.dart';
7 import 'package:web_components/transformer.dart'; 7 import 'package:web_components/transformer.dart';
8 import 'package:unittest/compact_vm_config.dart'; 8 import 'package:unittest/compact_vm_config.dart';
9 import 'common.dart'; 9 import 'common.dart';
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 i0.main(); 96 i0.main();
97 } 97 }
98 ''', 98 ''',
99 'a|web/index.bootstrap.dart': ''' 99 'a|web/index.bootstrap.dart': '''
100 library a.web.index_bootstrap_dart; 100 library a.web.index_bootstrap_dart;
101 101
102 import 'index.html.0.dart' as i0; 102 import 'index.html.0.dart' as i0;
103 import 'package:b/foo.dart' as i1; 103 import 'package:b/foo.dart' as i1;
104 import 'index.dart' as i2; 104 import 'index.dart' as i2;
105 105
106 void main() => i2.main(); 106 void main() { i2.main(); }
107 ''', 107 ''',
108 'a|web/index.html.0.dart': ''' 108 'a|web/index.html.0.dart': '''
109 // Must use package:urls inside inline script tags, 109 // Must use package:urls inside inline script tags,
110 @HtmlImport('package:b/bar_nodart.html') 110 @HtmlImport('package:b/bar_nodart.html')
111 library b.bar; 111 library b.bar;
112 112
113 import 'package:web_components/html_import_annotation.dart'; 113 import 'package:web_components/html_import_annotation.dart';
114 114
115 import 'package:initialize/initialize.dart'; 115 import 'package:initialize/initialize.dart';
116 116
117 @initMethod 117 @initMethod
118 bar() {} 118 bar() {}
119 ''', 119 ''',
120 }, [], StringFormatter.noNewlinesOrSurroundingWhitespace); 120 }, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
121 } 121 }
OLDNEW
« lib/build/script_compactor.dart ('K') | « test/build/script_compactor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698