| 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.transform.polyfill_injector_test; | 5 library polymer.test.transform.polyfill_injector_test; |
| 6 | 6 |
| 7 import 'package:polymer/src/transform.dart'; | 7 import 'package:polymer/src/transform.dart'; |
| 8 import 'package:unittest/compact_vm_config.dart'; | 8 import 'package:unittest/compact_vm_config.dart'; |
| 9 | 9 |
| 10 import 'common.dart'; | 10 import 'common.dart'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 '<script type="application/dart" src="a.dart"></script>', | 28 '<script type="application/dart" src="a.dart"></script>', |
| 29 }); | 29 }); |
| 30 | 30 |
| 31 testPhases('with some script', [[new PolyfillInjector()]], { | 31 testPhases('with some script', [[new PolyfillInjector()]], { |
| 32 'a|web/test.html': | 32 'a|web/test.html': |
| 33 '<!DOCTYPE html><html><head></head><body>' | 33 '<!DOCTYPE html><html><head></head><body>' |
| 34 '<script type="application/dart" src="a.dart"></script>', | 34 '<script type="application/dart" src="a.dart"></script>', |
| 35 }, { | 35 }, { |
| 36 'a|web/test.html': | 36 'a|web/test.html': |
| 37 '<!DOCTYPE html><html><head></head><body>' | 37 '<!DOCTYPE html><html><head></head><body>' |
| 38 '$SHADOW_DOM_TAG$INTEROP_TAG' | 38 '$SHADOW_DOM_TAG$INTEROP_TAG$PKG_JS_INTEROP_TAG' |
| 39 '<script type="application/dart" src="a.dart"></script>' | 39 '<script type="application/dart" src="a.dart"></script>' |
| 40 '</body></html>', | 40 '</body></html>', |
| 41 }); | 41 }); |
| 42 | 42 |
| 43 testPhases('interop/shadow dom already present', [[new PolyfillInjector()]], { | 43 testPhases('interop/shadow dom already present', [[new PolyfillInjector()]], { |
| 44 'a|web/test.html': | 44 'a|web/test.html': |
| 45 '<!DOCTYPE html><html><head></head><body>' | 45 '<!DOCTYPE html><html><head></head><body>' |
| 46 '<script type="application/dart" src="a.dart"></script>' | 46 '<script type="application/dart" src="a.dart"></script>' |
| 47 '$SHADOW_DOM_TAG' | 47 '$SHADOW_DOM_TAG' |
| 48 '$INTEROP_TAG', | 48 '$INTEROP_TAG' |
| 49 '$PKG_JS_INTEROP_TAG', |
| 49 }, { | 50 }, { |
| 50 'a|web/test.html': | 51 'a|web/test.html': |
| 51 '<!DOCTYPE html><html><head></head><body>' | 52 '<!DOCTYPE html><html><head></head><body>' |
| 52 '<script type="application/dart" src="a.dart"></script>' | 53 '<script type="application/dart" src="a.dart"></script>' |
| 53 '$SHADOW_DOM_TAG' | 54 '$SHADOW_DOM_TAG' |
| 54 '$INTEROP_TAG</body></html>', | 55 '$INTEROP_TAG' |
| 56 '$PKG_JS_INTEROP_TAG' |
| 57 '</body></html>', |
| 55 }); | 58 }); |
| 56 } | 59 } |
| OLD | NEW |