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

Unified Diff: pkg/polymer/test/build/common.dart

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/build/code_extractor.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/common.dart
diff --git a/pkg/polymer/test/build/common.dart b/pkg/polymer/test/build/common.dart
index 17c254a1ecf49e154d39aa0988ffa33e3ec0ef81..7e824e156ce77029cd3cd6b58c4d8b463ca6e670 100644
--- a/pkg/polymer/test/build/common.dart
+++ b/pkg/polymer/test/build/common.dart
@@ -137,14 +137,31 @@ testPhases(String testName, List<List<Transformer>> phases,
});
}
+solo_testPhases(String testName, List<List<Transformer>> phases,
+ Map<String, String> inputFiles, Map<String, String> expectedFiles,
+ [List<String> expectedMessages]) =>
+ testPhases(testName, phases, inputFiles, expectedFiles, expectedMessages,
+ true);
+
+/// Generate an expected ._data file, where all files are assumed to be in the
+/// same [package].
+String expectedData(List<String> urls, {package: 'a', experimental: false}) {
+ var ids = urls.map((e) => '["$package","$e"]').join(',');
+ return '{"experimental_bootstrap":$experimental,"script_ids":[$ids]}';
+}
+
+const EMPTY_DATA = '{"experimental_bootstrap":false,"script_ids":[]}';
+
const WEB_COMPONENTS_TAG =
'<script src="packages/web_components/platform.js"></script>\n'
'<script src="packages/web_components/dart_support.js"></script>\n';
+const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n';
const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>';
const POLYMER_MOCKS = const {
- 'polymer|lib/polymer.html': '<!DOCTYPE html><html></html>',
+ 'polymer|lib/polymer.html': '<!DOCTYPE html><html>',
+ 'polymer|lib/polymer_experimental.html': '<!DOCTYPE html><html>',
'polymer|lib/polymer.dart':
'library polymer;\n'
'import "dart:html";\n'
« no previous file with comments | « pkg/polymer/test/build/code_extractor.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698