Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: pkg/polymer/test/build/polyfill_injector_test.dart

Issue 158083002: introduce web_components pkg for consolidated polyfills (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/test/build/common.dart ('k') | pkg/polymer/test/noscript_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 '<script type="application/dart" src="a.dart"></script>', 44 '<script type="application/dart" src="a.dart"></script>',
45 }); 45 });
46 46
47 testPhases('with some script', phases, { 47 testPhases('with some script', phases, {
48 'a|web/test.html': 48 'a|web/test.html':
49 '<!DOCTYPE html><html><head></head><body>' 49 '<!DOCTYPE html><html><head></head><body>'
50 '<script type="application/dart" src="a.dart"></script>', 50 '<script type="application/dart" src="a.dart"></script>',
51 }, { 51 }, {
52 'a|web/test.html': 52 'a|web/test.html':
53 '<!DOCTYPE html><html><head>' 53 '<!DOCTYPE html><html><head>'
54 '$SHADOW_DOM_TAG$CUSTOM_ELEMENT_TAG$INTEROP_TAG' 54 '$WEB_COMPONENTS_TAG$INTEROP_TAG'
55 '</head><body>' 55 '</head><body>'
56 '<script ${type}src="a.dart$ext"></script>' 56 '<script ${type}src="a.dart$ext"></script>'
57 '$dartJsTag' 57 '$dartJsTag'
58 '</body></html>', 58 '</body></html>',
59 }); 59 });
60 60
61 testPhases('interop/shadow dom already present', phases, { 61 testPhases('interop/shadow dom already present', phases, {
62 'a|web/test.html': 62 'a|web/test.html':
63 '<!DOCTYPE html><html><head>' 63 '<!DOCTYPE html><html><head>'
64 '$SHADOW_DOM_TAG' 64 '$WEB_COMPONENTS_TAG'
65 '$CUSTOM_ELEMENT_TAG'
66 '$INTEROP_TAG' 65 '$INTEROP_TAG'
67 '</head><body>' 66 '</head><body>'
68 '<script type="application/dart" src="a.dart"></script>' 67 '<script type="application/dart" src="a.dart"></script>'
69 '$dartJsTag' 68 '$dartJsTag'
70 }, { 69 }, {
71 'a|web/test.html': 70 'a|web/test.html':
72 '<!DOCTYPE html><html><head>' 71 '<!DOCTYPE html><html><head>'
73 '$SHADOW_DOM_TAG' 72 '$WEB_COMPONENTS_TAG'
74 '$CUSTOM_ELEMENT_TAG'
75 '$INTEROP_TAG' 73 '$INTEROP_TAG'
76 '</head><body>' 74 '</head><body>'
77 '<script ${type}src="a.dart$ext"></script>' 75 '<script ${type}src="a.dart$ext"></script>'
78 '$dartJsTag' 76 '$dartJsTag'
79 '</body></html>', 77 '</body></html>',
80 }); 78 });
81 } 79 }
OLDNEW
« no previous file with comments | « pkg/polymer/test/build/common.dart ('k') | pkg/polymer/test/noscript_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698