| 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: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 Loading... |
| 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'; |
| OLD | NEW |