OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 | 4 |
5 library polymer.test.build.common; | 5 library polymer.test.build.common; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
10 import 'package:stack_trace/stack_trace.dart'; | 10 import 'package:stack_trace/stack_trace.dart'; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 (solo ? solo_test : test)(testName, () { | 134 (solo ? solo_test : test)(testName, () { |
135 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run(); | 135 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run(); |
136 return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown()); | 136 return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown()); |
137 }); | 137 }); |
138 } | 138 } |
139 | 139 |
140 const WEB_COMPONENTS_TAG = | 140 const WEB_COMPONENTS_TAG = |
141 '<script src="packages/web_components/platform.js"></script>\n' | 141 '<script src="packages/web_components/platform.js"></script>\n' |
142 '<script src="packages/web_components/dart_support.js"></script>\n'; | 142 '<script src="packages/web_components/dart_support.js"></script>\n'; |
143 | 143 |
144 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; | |
145 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; | 144 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; |
146 | 145 |
147 const POLYMER_MOCKS = const { | 146 const POLYMER_MOCKS = const { |
| 147 'polymer|lib/polymer.html': '<!DOCTYPE html><html></html>', |
148 'polymer|lib/polymer.dart': | 148 'polymer|lib/polymer.dart': |
149 'library polymer;\n' | 149 'library polymer;\n' |
150 'import "dart:html";\n' | 150 'import "dart:html";\n' |
151 'export "package:observe/observe.dart";\n' // for @observable | 151 'export "package:observe/observe.dart";\n' // for @observable |
152 'part "src/loader.dart";\n' // for @CustomTag and @initMethod | 152 'part "src/loader.dart";\n' // for @CustomTag and @initMethod |
153 'part "src/instance.dart";\n', // for @published and @ObserveProperty | 153 'part "src/instance.dart";\n', // for @published and @ObserveProperty |
154 | 154 |
155 'polymer|lib/src/loader.dart': | 155 'polymer|lib/src/loader.dart': |
156 'part of polymer;\n' | 156 'part of polymer;\n' |
157 'class CustomTag {\n' | 157 'class CustomTag {\n' |
(...skipping 18 matching lines...) Expand all Loading... |
176 | 176 |
177 'observe|lib/observe.dart': | 177 'observe|lib/observe.dart': |
178 'library observe;\n' | 178 'library observe;\n' |
179 'export "src/metadata.dart";', | 179 'export "src/metadata.dart";', |
180 | 180 |
181 'observe|lib/src/metadata.dart': | 181 'observe|lib/src/metadata.dart': |
182 'library observe.src.metadata;\n' | 182 'library observe.src.metadata;\n' |
183 'class ObservableProperty { const ObservableProperty(); }\n' | 183 'class ObservableProperty { const ObservableProperty(); }\n' |
184 'const observable = const ObservableProperty();\n', | 184 'const observable = const ObservableProperty();\n', |
185 }; | 185 }; |
OLD | NEW |