| 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:code_transformers/messages/build_logger.dart' | 10 import 'package:code_transformers/messages/build_logger.dart' |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 /// same [package]. | 194 /// same [package]. |
| 195 String expectedData(List<String> urls, {package: 'a', experimental: false}) { | 195 String expectedData(List<String> urls, {package: 'a', experimental: false}) { |
| 196 var ids = urls.map((e) => '["$package","$e"]').join(','); | 196 var ids = urls.map((e) => '["$package","$e"]').join(','); |
| 197 return '{"experimental_bootstrap":$experimental,"script_ids":[$ids]}'; | 197 return '{"experimental_bootstrap":$experimental,"script_ids":[$ids]}'; |
| 198 } | 198 } |
| 199 | 199 |
| 200 const EMPTY_DATA = '{"experimental_bootstrap":false,"script_ids":[]}'; | 200 const EMPTY_DATA = '{"experimental_bootstrap":false,"script_ids":[]}'; |
| 201 | 201 |
| 202 const DART_SUPPORT_TAG = | 202 const DART_SUPPORT_TAG = |
| 203 '<script src="packages/web_components/dart_support.js"></script>\n'; | 203 '<script src="packages/web_components/dart_support.js"></script>\n'; |
| 204 const WEB_COMPONENTS_JS_TAG = |
| 205 '<script src="packages/web_components/webcomponents.min.js"></script>\n'; |
| 206 const COMPATIBILITY_JS_TAGS = |
| 207 '$WEB_COMPONENTS_JS_TAG$DART_SUPPORT_TAG'; |
| 204 const PLATFORM_JS_TAG = | 208 const PLATFORM_JS_TAG = |
| 205 '<script src="packages/web_components/platform.js"></script>\n'; | 209 '<script src="packages/web_components/platform.js"></script>\n'; |
| 206 const WEB_COMPONENTS_TAG = | |
| 207 '$PLATFORM_JS_TAG$DART_SUPPORT_TAG'; | |
| 208 | 210 |
| 209 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; | 211 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; |
| 210 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; | 212 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; |
| 211 | 213 |
| 212 const POLYMER_MOCKS = const { | 214 const POLYMER_MOCKS = const { |
| 213 'polymer|lib/src/js/polymer/polymer.html': '<!DOCTYPE html><html>', | 215 'polymer|lib/src/js/polymer/polymer.html': '<!DOCTYPE html><html>', |
| 214 'polymer|lib/polymer.html': '<!DOCTYPE html><html>' | 216 'polymer|lib/polymer.html': '<!DOCTYPE html><html>' |
| 215 '<link rel="import" href="src/js/polymer/polymer.html">', | 217 '<link rel="import" href="src/js/polymer/polymer.html">', |
| 216 'polymer|lib/polymer_experimental.html': | 218 'polymer|lib/polymer_experimental.html': |
| 217 '<!DOCTYPE html><html>' | 219 '<!DOCTYPE html><html>' |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 253 |
| 252 'observe|lib/observe.dart': | 254 'observe|lib/observe.dart': |
| 253 'library observe;\n' | 255 'library observe;\n' |
| 254 'export "src/metadata.dart";', | 256 'export "src/metadata.dart";', |
| 255 | 257 |
| 256 'observe|lib/src/metadata.dart': | 258 'observe|lib/src/metadata.dart': |
| 257 'library observe.src.metadata;\n' | 259 'library observe.src.metadata;\n' |
| 258 'class ObservableProperty { const ObservableProperty(); }\n' | 260 'class ObservableProperty { const ObservableProperty(); }\n' |
| 259 'const observable = const ObservableProperty();\n', | 261 'const observable = const ObservableProperty();\n', |
| 260 }; | 262 }; |
| OLD | NEW |