| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |