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

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

Issue 61193002: Add a build filter (only necessary HTML files are emitted) and logic to use .min.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 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/lib/transformer.dart ('k') | no next file » | 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:stack_trace/stack_trace.dart'; 10 import 'package:stack_trace/stack_trace.dart';
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 testPhases(String testName, List<List<Transformer>> phases, 97 testPhases(String testName, List<List<Transformer>> phases,
98 Map<String, String> inputFiles, Map<String, String> expectedFiles) { 98 Map<String, String> inputFiles, Map<String, String> expectedFiles) {
99 test(testName, () { 99 test(testName, () {
100 var helper = new TestHelper(phases, inputFiles)..run(); 100 var helper = new TestHelper(phases, inputFiles)..run();
101 return helper.checkAll(expectedFiles).then((_) => helper.tearDown()); 101 return helper.checkAll(expectedFiles).then((_) => helper.tearDown());
102 }); 102 });
103 } 103 }
104 104
105 // TODO(jmesserly): this is .debug to workaround issue 13046. 105 // TODO(jmesserly): this is .debug to workaround issue 14720.
106 const SHADOW_DOM_TAG = 106 const SHADOW_DOM_TAG =
107 '<script src="packages/shadow_dom/shadow_dom.debug.js"></script>\n'; 107 '<script src="packages/shadow_dom/shadow_dom.debug.js"></script>\n';
108 108
109 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; 109 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n';
110 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; 110 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>';
111 111
112 const CUSTOM_ELEMENT_TAG = 112 const CUSTOM_ELEMENT_TAG =
113 '<script src="packages/custom_element/custom-elements.debug.js">' 113 '<script src="packages/custom_element/custom-elements.debug.js">'
114 '</script>\n'; 114 '</script>\n';
OLDNEW
« no previous file with comments | « pkg/polymer/lib/transformer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698