| 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.transfom.common; | 5 library polymer.test.transfom.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 | 89 |
| 90 testPhases(String testName, List<List<Transformer>> phases, | 90 testPhases(String testName, List<List<Transformer>> phases, |
| 91 Map<String, String> inputFiles, Map<String, String> expectedFiles) { | 91 Map<String, String> inputFiles, Map<String, String> expectedFiles) { |
| 92 test(testName, () { | 92 test(testName, () { |
| 93 var helper = new TestHelper(phases, inputFiles)..run(); | 93 var helper = new TestHelper(phases, inputFiles)..run(); |
| 94 return helper.checkAll(expectedFiles).then((_) => helper.tearDown()); | 94 return helper.checkAll(expectedFiles).then((_) => helper.tearDown()); |
| 95 }); | 95 }); |
| 96 } | 96 } |
| 97 | 97 |
| 98 const SHADOW_DOM_TAG = |
| 99 '<script src="packages/shadow_dom/shadow_dom.min.js"></script>\n'; |
| 100 |
| 101 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; |
| OLD | NEW |