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

Side by Side Diff: packages/web_components/test/build/mirrors_remover_test.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
(Empty)
1 // Copyright (c) 2015, 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 library web_components.test.build.mirrors_remover_test;
5
6 import 'package:code_transformers/tests.dart';
7 import 'package:web_components/build/mirrors_remover.dart';
8 import 'package:unittest/compact_vm_config.dart';
9 import 'package:unittest/unittest.dart';
10
11 main() {
12 useCompactVMConfiguration();
13
14 var transformer = new MirrorsRemoverTransformer();
15 var phases = [[transformer]];
16
17 testPhases('basic', phases, {
18 'a|lib/src/init.dart': '''
19 libary web_components.init;
20
21 import 'src/mirror_initializer.dart' as init;
22 export 'src/mirror_initializer.dart' show deployMode;
23
24 foo() {}
25 ''',
26 }, {
27 'a|lib/src/init.dart': '''
28 libary web_components.init;
29
30 import 'src/static_initializer.dart' as init;
31 export 'src/static_initializer.dart' show deployMode;
32
33 foo() {}
34 ''',
35 }, []);
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698