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