-
-
-
-
diff --git a/third_party/src/test/testData/packages/core_elements/src/polymer/polymer.html b/third_party/src/test/testData/packages/core_elements/src/polymer/polymer.html
deleted file mode 100644
index 1fbf6d74c..000000000
--- a/third_party/src/test/testData/packages/core_elements/src/polymer/polymer.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
diff --git a/third_party/src/test/testData/packages/polymer/polymer.dart b/third_party/src/test/testData/packages/polymer/polymer.dart
deleted file mode 100644
index d341bc36a..000000000
--- a/third_party/src/test/testData/packages/polymer/polymer.dart
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/// Custom HTML tags, data binding, and templates for building
-/// structured, encapsulated, client-side web apps.
-///
-/// Polymer.dart, the next evolution of Web UI,
-/// is an in-progress Dart port of the
-/// [Polymer project](http://www.polymer-project.org/).
-/// Polymer.dart compiles to JavaScript and runs across the modern web.
-///
-/// To use polymer.dart in your application,
-/// first add a
-/// [dependency](http://pub.dartlang.org/doc/dependencies.html)
-/// to the app's pubspec.yaml file.
-/// Instead of using the open-ended `any` version specifier,
-/// we recommend using a range of version numbers, as in this example:
-///
-/// dependencies:
-/// polymer: '>=0.7.1 <0.8'
-///
-/// Then import the library into your application:
-///
-/// import 'package:polymer/polymer.dart';
-///
-/// ## Other resources
-///
-/// * [Polymer.dart homepage](http://www.dartlang.org/polymer-dart/):
-/// Example code, project status, and
-/// information about how to get started using Polymer.dart in your apps.
-///
-/// * [polymer.dart package](http://pub.dartlang.org/packages/polymer):
-/// More details, such as the current major release number.
-///
-/// * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading-to-polymer-from-web-ui.html):
-/// Tips for converting your apps from Web UI to Polymer.dart.
-library polymer;
-
-import 'dart:async';
-import 'dart:collection';
-import 'dart:html';
-import 'dart:js' as js show context;
-import 'dart:js' hide context;
-
-// *** Important Note ***
-// This import is automatically replaced when calling pub build by the
-// mirrors_remover transformer. The transformer will remove any dependencies on
-// dart:mirrors in deployed polymer apps. This and the import to
-// mirror_loader.dart below should be updated in sync with changed in
-// lib/src/build/mirrors_remover.dart.
-//
-// Technically this annotation is not needed now that we have codegen for
-// expressions, but our test bots don't run pub-build yet. Until then, tests
-// might (transitively) have an import to smoke.mirrors, even though the code is
-// completely dead. This @MirrorsUsed annotation helps reduce the load on our
-// bots.
-@MirrorsUsed(metaTargets:
- const [Reflectable, ObservableProperty, PublishedProperty, CustomTag,
- ObserveProperty],
- targets: const [PublishedProperty, ObserveProperty],
- override: const ['smoke.mirrors'])
-import 'dart:mirrors' show MirrorsUsed; // ** see important note above
-
-import 'package:logging/logging.dart';
-import 'package:observe/observe.dart';
-import 'package:observe/src/dirty_check.dart' show dirtyCheckZone;
-import 'package:polymer_expressions/polymer_expressions.dart'
- as polymer_expressions;
-import 'package:smoke/smoke.dart' as smoke;
-import 'package:template_binding/template_binding.dart';
-
-import 'auto_binding.dart';
-import 'deserialize.dart' as deserialize;
-import 'src/mirror_loader.dart' as loader; // ** see important note above
-
-export 'package:observe/observe.dart';
-export 'package:observe/html.dart';
-export 'auto_binding.dart';
-
-part 'src/declaration.dart';
-part 'src/events.dart';
-part 'src/instance.dart';
-part 'src/job.dart';
-part 'src/loader.dart';
-part 'src/property_accessor.dart';
diff --git a/third_party/src/test/testData/packages/polymer/polymer.html b/third_party/src/test/testData/packages/polymer/polymer.html
deleted file mode 100644
index 6affec83f..000000000
--- a/third_party/src/test/testData/packages/polymer/polymer.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/third_party/src/test/testData/packages/polymer/src/js/polymer/layout.html b/third_party/src/test/testData/packages/polymer/src/js/polymer/layout.html
deleted file mode 100644
index c9d8cba5d..000000000
--- a/third_party/src/test/testData/packages/polymer/src/js/polymer/layout.html
+++ /dev/null
@@ -1,286 +0,0 @@
-
-
\ No newline at end of file
diff --git a/third_party/src/test/testData/packages/polymer/src/js/polymer/polymer.html b/third_party/src/test/testData/packages/polymer/src/js/polymer/polymer.html
deleted file mode 100644
index 7e3d8f1e4..000000000
--- a/third_party/src/test/testData/packages/polymer/src/js/polymer/polymer.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
diff --git a/third_party/src/test/testData/packages/polymer/transformer.dart b/third_party/src/test/testData/packages/polymer/transformer.dart
deleted file mode 100644
index f9573fe06..000000000
--- a/third_party/src/test/testData/packages/polymer/transformer.dart
+++ /dev/null
@@ -1,178 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/// Transfomer used for pub-serve and pub-deploy.
-library polymer.transformer;
-
-import 'package:barback/barback.dart';
-import 'package:observe/transformer.dart';
-import 'package:path/path.dart' as path;
-
-import 'src/build/build_filter.dart';
-import 'src/build/common.dart';
-import 'src/build/index_page_builder.dart';
-import 'src/build/import_inliner.dart';
-import 'src/build/linter.dart';
-import 'src/build/build_log_combiner.dart';
-import 'src/build/polyfill_injector.dart';
-import 'src/build/script_compactor.dart';
-
-/// The Polymer transformer, which internally runs several phases that will:
-/// * Extract inlined script tags into their separate files
-/// * Apply the observable transformer on every Dart script.
-/// * Inline imported html files
-/// * Combine scripts from multiple files into a single script tag
-/// * Inject extra polyfills needed to run on all browsers.
-///
-/// At the end of these phases, this tranformer produces a single entrypoint
-/// HTML file with a single Dart script that can later be compiled with dart2js.
-class PolymerTransformerGroup implements TransformerGroup {
- final Iterable phases;
-
- PolymerTransformerGroup(TransformOptions options)
- : phases = createDeployPhases(options);
-
- PolymerTransformerGroup.asPlugin(BarbackSettings settings)
- : this(_parseSettings(settings));
-}
-
-TransformOptions _parseSettings(BarbackSettings settings) {
- var args = settings.configuration;
- bool releaseMode = settings.mode == BarbackMode.RELEASE;
- bool jsOption = args['js'];
- bool csp = args['csp'] == true; // defaults to false
- bool injectBuildLogs =
- !releaseMode && args['inject_build_logs_in_output'] != false;
- bool injectWebComponentsJs = true;
- if (args['inject_platform_js'] != null) {
- print(
- 'Deprecated polymer transformer option `inject_platform_js`. This has '
- 'been renamed `inject_web_components_js` to match the new file name.');
- injectWebComponentsJs = args['inject_platform_js'] != false;
- }
- if (args['inject_webcomponents_js'] != null) {
- injectWebComponentsJs = args['inject_webcomponents_js'] != false;
- }
- return new TransformOptions(
- entryPoints: readFileList(args['entry_points']),
- inlineStylesheets: _readInlineStylesheets(args['inline_stylesheets']),
- directlyIncludeJS: jsOption == null ? releaseMode : jsOption,
- contentSecurityPolicy: csp,
- releaseMode: releaseMode,
- lint: _parseLintOption(args['lint']),
- injectBuildLogsInOutput: injectBuildLogs,
- injectWebComponentsJs: injectWebComponentsJs);
-}
-
-// Lint option can be empty (all files), false, true, or a map indicating
-// include/exclude files.
-_parseLintOption(value) {
- var lint = null;
- if (value == null || value == true) return new LintOptions();
- if (value == false) return new LintOptions.disabled();
- if (value is Map && value.length == 1) {
- var key = value.keys.single;
- var files = readFileList(value[key]);
- if (key == 'include') {
- return new LintOptions.include(files);
- } else if (key == 'exclude') {
- return new LintOptions.exclude(files);
- }
- }
-
- // Any other case it is an error:
- print('Invalid value for "lint" in the polymer transformer. '
- 'Expected one of the following: \n'
- ' lint: true # or\n'
- ' lint: false # or\n'
- ' lint: \n'
- ' include: \n'
- ' - file1 \n'
- ' - file2 # or \n'
- ' lint: \n'
- ' exclude: \n'
- ' - file1 \n'
- ' - file2 \n');
- return new LintOptions();
-}
-
-readFileList(value) {
- if (value == null) return null;
- var files = [];
- bool error;
- if (value is List) {
- files = value;
- error = value.any((e) => e is! String);
- } else if (value is String) {
- files = [value];
- error = false;
- } else {
- error = true;
- }
- if (error) {
- print('Invalid value for "entry_points" in the polymer transformer.');
- }
- return files;
-}
-
-Map _readInlineStylesheets(settingValue) {
- if (settingValue == null) return null;
- var inlineStylesheets = {};
- bool error = false;
- if (settingValue is Map) {
- settingValue.forEach((key, value) {
- if (value is! bool || key is! String) {
- error = true;
- return;
- }
- if (key == 'default') {
- inlineStylesheets[key] = value;
- return;
- };
- key = systemToAssetPath(key);
- // Special case package urls, convert to AssetId and use serialized form.
- var packageMatch = _PACKAGE_PATH_REGEX.matchAsPrefix(key);
- if (packageMatch != null) {
- var package = packageMatch[1];
- var path = 'lib/${packageMatch[2]}';
- key = new AssetId(package, path).toString();
- }
- inlineStylesheets[key] = value;
- });
- } else if (settingValue is bool) {
- inlineStylesheets['default'] = settingValue;
- } else {
- error = true;
- }
- if (error) {
- print('Invalid value for "inline_stylesheets" in the polymer transformer.');
- }
- return inlineStylesheets;
-}
-
-/// Create deploy phases for Polymer. Note that inlining HTML Imports
-/// comes first (other than linter, if [options.linter] is enabled), which
-/// allows the rest of the HTML-processing phases to operate only on HTML that
-/// is actually imported.
-List> createDeployPhases(
- TransformOptions options, {String sdkDir}) {
- // TODO(sigmund): this should be done differently. We should lint everything
- // that is reachable and have the option to lint the rest (similar to how
- // dart2js can analyze reachable code or entire libraries).
- var phases = options.lint.enabled ? [[new Linter(options)]] : [];
- phases.addAll([
- [new ImportInliner(options)],
- [new ObservableTransformer()],
- [new ScriptCompactor(options, sdkDir: sdkDir)],
- [new PolyfillInjector(options)],
- [new BuildFilter(options)],
- [new BuildLogCombiner(options)],
- ]);
- if (!options.releaseMode) {
- phases.add([new IndexPageBuilder(options)]);
- }
- return phases;
-}
-
-final RegExp _PACKAGE_PATH_REGEX = new RegExp(r'packages\/([^\/]+)\/(.*)');