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

Side by Side Diff: pkg/polymer/test/build/common.dart

Issue 676313004: fix bug where dart_support.js could get included above platform.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update pubspec/changelog Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | pkg/polymer/test/build/polyfill_injector_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 /// Generate an expected ._data file, where all files are assumed to be in the 193 /// Generate an expected ._data file, where all files are assumed to be in the
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 WEB_COMPONENTS_TAG =
203 '<script src="packages/web_components/platform.js"></script>\n'
204 '<script src="packages/web_components/dart_support.js"></script>\n';
205 const DART_SUPPORT_TAG = 202 const DART_SUPPORT_TAG =
206 '<script src="packages/web_components/dart_support.js"></script>\n'; 203 '<script src="packages/web_components/dart_support.js"></script>\n';
204 const PLATFORM_JS_TAG =
205 '<script src="packages/web_components/platform.js"></script>\n';
206 const WEB_COMPONENTS_TAG =
207 '$PLATFORM_JS_TAG$DART_SUPPORT_TAG';
207 208
208 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; 209 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n';
209 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; 210 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>';
210 211
211 const POLYMER_MOCKS = const { 212 const POLYMER_MOCKS = const {
212 'polymer|lib/src/js/polymer/polymer.html': '<!DOCTYPE html><html>', 213 'polymer|lib/src/js/polymer/polymer.html': '<!DOCTYPE html><html>',
213 'polymer|lib/polymer.html': '<!DOCTYPE html><html>' 214 'polymer|lib/polymer.html': '<!DOCTYPE html><html>'
214 '<link rel="import" href="src/js/polymer/polymer.html">', 215 '<link rel="import" href="src/js/polymer/polymer.html">',
215 'polymer|lib/polymer_experimental.html': 216 'polymer|lib/polymer_experimental.html':
216 '<!DOCTYPE html><html>' 217 '<!DOCTYPE html><html>'
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 251
251 'observe|lib/observe.dart': 252 'observe|lib/observe.dart':
252 'library observe;\n' 253 'library observe;\n'
253 'export "src/metadata.dart";', 254 'export "src/metadata.dart";',
254 255
255 'observe|lib/src/metadata.dart': 256 'observe|lib/src/metadata.dart':
256 'library observe.src.metadata;\n' 257 'library observe.src.metadata;\n'
257 'class ObservableProperty { const ObservableProperty(); }\n' 258 'class ObservableProperty { const ObservableProperty(); }\n'
258 'const observable = const ObservableProperty();\n', 259 'const observable = const ObservableProperty();\n',
259 }; 260 };
OLDNEW
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | pkg/polymer/test/build/polyfill_injector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698