| 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 18 matching lines...) Expand all Loading... |
| 29 '<!DOCTYPE html><html><head></head><body>' | 29 '<!DOCTYPE html><html><head></head><body>' |
| 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>' |
| 40 '$SHADOW_DOM_TAG$CUSTOM_ELEMENT_TAG$INTEROP_TAG' | 40 '$SHADOW_DOM_TAG$CUSTOM_ELEMENT_TAG$INTEROP_TAG' |
| 41 '</head><body>' |
| 41 '<script type="application/dart" src="a.dart"></script>' | 42 '<script type="application/dart" src="a.dart"></script>' |
| 43 '$DART_JS_TAG' |
| 42 '</body></html>', | 44 '</body></html>', |
| 43 }); | 45 }); |
| 44 | 46 |
| 45 testPhases('interop/shadow dom already present', phases, { | 47 testPhases('interop/shadow dom already present', phases, { |
| 46 'a|web/test.html': | 48 'a|web/test.html': |
| 47 '<!DOCTYPE html><html><head></head><body>' | 49 '<!DOCTYPE html><html><head>' |
| 48 '<script type="application/dart" src="a.dart"></script>' | |
| 49 '$SHADOW_DOM_TAG' | 50 '$SHADOW_DOM_TAG' |
| 50 '$CUSTOM_ELEMENT_TAG' | 51 '$CUSTOM_ELEMENT_TAG' |
| 51 '$INTEROP_TAG' | 52 '$INTEROP_TAG' |
| 53 '</head><body>' |
| 54 '<script type="application/dart" src="a.dart"></script>' |
| 55 '$DART_JS_TAG' |
| 52 }, { | 56 }, { |
| 53 'a|web/test.html': | 57 'a|web/test.html': |
| 54 '<!DOCTYPE html><html><head></head><body>' | 58 '<!DOCTYPE html><html><head>' |
| 55 '<script type="application/dart" src="a.dart"></script>' | |
| 56 '$SHADOW_DOM_TAG' | 59 '$SHADOW_DOM_TAG' |
| 57 '$CUSTOM_ELEMENT_TAG' | 60 '$CUSTOM_ELEMENT_TAG' |
| 58 '$INTEROP_TAG' | 61 '$INTEROP_TAG' |
| 62 '</head><body>' |
| 63 '<script type="application/dart" src="a.dart"></script>' |
| 64 '$DART_JS_TAG' |
| 59 '</body></html>', | 65 '</body></html>', |
| 60 }); | 66 }); |
| 61 } | 67 } |
| OLD | NEW |