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

Side by Side Diff: test/initializer_test.dart

Issue 888943002: added plugin transformer which initializers can extend to do additional post-processing during tran… (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: update pubspec/changelog Created 5 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
« no previous file with comments | « pubspec.yaml ('k') | test/plugin_transformer_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) 2015, the Dart project authors. Please see the AUTHORS file 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 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 @initializeTracker 4 @initializeTracker
5 library initialize.initializer_test; 5 library initialize.initializer_test;
6 6
7 import 'foo.dart'; 7 import 'foo.dart';
8 import 'bar.dart'; 8 import 'bar.dart';
9 import 'package:initialize/src/initialize_tracker.dart'; 9 import 'package:initialize/src/initialize_tracker.dart';
10 import 'package:initialize/initialize.dart'; 10 import 'package:initialize/initialize.dart';
11 import 'package:test_package/foo.dart'; 11 import 'package:test_package/foo.dart';
12 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 import 'package:unittest/compact_vm_config.dart'; 13 import 'package:unittest/compact_vm_config.dart';
14 14
15 main() { 15 main() {
16 useCompactVMConfiguration(); 16 useCompactVMConfiguration();
17 17
18 // Run all initializers. 18 // Run all initializers.
19 run().then((_) { 19 run().then((_) {
20 test('annotations are seen in post-order with superclasses first', () { 20 test('annotations are seen in post-order with superclasses first', () {
21 var expectedNames = [ 21 var expectedNames = [
22 const LibraryIdentifier(#test_package.bar, 'test_package', 'bar.dart'), 22 const LibraryIdentifier(#test_package.bar, 'test_package', 'bar.dart'),
23 const LibraryIdentifier(#test_package.foo, 'test_package','foo.dart'), 23 const LibraryIdentifier(#test_package.foo, 'test_package', 'foo.dart'),
24 const LibraryIdentifier(#initialize.test.foo, null, 'foo.dart'), 24 const LibraryIdentifier(#initialize.test.foo, null, 'foo.dart'),
25 foo, 25 foo,
26 fooBar, 26 fooBar,
27 Foo, 27 Foo,
28 const LibraryIdentifier(#initialize.test.bar, null, 'bar.dart'), 28 const LibraryIdentifier(#initialize.test.bar, null, 'bar.dart'),
29 bar, 29 bar,
30 Bar, 30 Bar,
31 const LibraryIdentifier( 31 const LibraryIdentifier(
32 #initialize.initializer_test, null, 'initializer_test.dart'), 32 #initialize.initializer_test, null, 'initializer_test.dart'),
33 zap, 33 zap,
(...skipping 14 matching lines...) Expand all
48 } 48 }
49 49
50 @initializeTracker 50 @initializeTracker
51 class Zoop {} 51 class Zoop {}
52 52
53 @initializeTracker 53 @initializeTracker
54 class Zap extends Zoop {} 54 class Zap extends Zoop {}
55 55
56 @initializeTracker 56 @initializeTracker
57 zap() {} 57 zap() {}
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | test/plugin_transformer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698