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

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

Issue 23757034: Rearranges the polymer package now that the old compiler is gone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library polymer.test.transform.polyfill_injector_test;
6
7 import 'package:polymer/src/transform/common.dart';
8 import 'package:polymer/src/transform/polyfill_injector.dart';
9 import 'package:unittest/compact_vm_config.dart';
10
11 import 'common.dart';
12
13 void main() {
14 useCompactVMConfiguration();
15 var phases = [[new PolyfillInjector(new TransformOptions())]];
16
17 testPhases('no changes', phases, {
18 'a|web/test.html': '<!DOCTYPE html><html></html>',
19 }, {
20 'a|web/test.html': '<!DOCTYPE html><html></html>',
21 });
22
23 testPhases('no changes under lib ', phases, {
24 'a|lib/test.html':
25 '<!DOCTYPE html><html><head></head><body>'
26 '<script type="application/dart" src="a.dart"></script>',
27 }, {
28 'a|lib/test.html':
29 '<!DOCTYPE html><html><head></head><body>'
30 '<script type="application/dart" src="a.dart"></script>',
31 });
32
33 testPhases('with some script', phases, {
34 'a|web/test.html':
35 '<!DOCTYPE html><html><head></head><body>'
36 '<script type="application/dart" src="a.dart"></script>',
37 }, {
38 'a|web/test.html':
39 '<!DOCTYPE html><html><head></head><body>'
40 '$SHADOW_DOM_TAG$INTEROP_TAG$PKG_JS_INTEROP_TAG'
41 '<script type="application/dart" src="a.dart"></script>'
42 '</body></html>',
43 });
44
45 testPhases('interop/shadow dom already present', phases, {
46 'a|web/test.html':
47 '<!DOCTYPE html><html><head></head><body>'
48 '<script type="application/dart" src="a.dart"></script>'
49 '$SHADOW_DOM_TAG'
50 '$INTEROP_TAG'
51 '$PKG_JS_INTEROP_TAG',
52 }, {
53 'a|web/test.html':
54 '<!DOCTYPE html><html><head></head><body>'
55 '<script type="application/dart" src="a.dart"></script>'
56 '$SHADOW_DOM_TAG'
57 '$INTEROP_TAG'
58 '$PKG_JS_INTEROP_TAG'
59 '</body></html>',
60 });
61 }
OLDNEW
« no previous file with comments | « pkg/polymer/test/transform/import_inliner_test.dart ('k') | pkg/polymer/test/transform/script_compactor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698