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

Side by Side Diff: pkg/smoke/test/static_test.dart

Issue 173473002: Adapting observe to use smoke (this is built on top of the previous change that (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/smoke/test/common.dart ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 smoke.test.static_test; 5 library smoke.test.static_test;
6 6
7 import 'package:smoke/smoke.dart' show Declaration; 7 import 'package:smoke/smoke.dart' show Declaration, PROPERTY, METHOD;
8 import 'package:smoke/static.dart'; 8 import 'package:smoke/static.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'common.dart' hide main; 10 import 'common.dart' hide main;
11 import 'common.dart' as common show main; 11 import 'common.dart' as common show main;
12 12
13 // Abstract class used to represent the mixing C&A in the smoke configuration. 13 // Abstract class used to represent the mixing C&A in the smoke configuration.
14 abstract class C_with_A {} 14 abstract class C_with_A {}
15 15
16 // Static configuration that declares only the symbols, getters, methods, and 16 // Static configuration that declares only the symbols, getters, methods, and
17 // super-class relationships we want to preserve. This and the class above 17 // super-class relationships we want to preserve. This and the class above
(...skipping 20 matching lines...) Expand all
38 E: Object, 38 E: Object,
39 E2: E, 39 E2: E,
40 F: Object, 40 F: Object,
41 F2: F, 41 F2: F,
42 G: Object, 42 G: Object,
43 H: G, 43 H: G,
44 }, 44 },
45 declarations: { 45 declarations: {
46 B: { 46 B: {
47 #a: const Declaration(#a, A), 47 #a: const Declaration(#a, A),
48 #w: const Declaration(#w, int), 48 #w: const Declaration(#w, int, kind: PROPERTY),
49 #f: const Declaration(#f, int, isFinal: true), 49 #f: const Declaration(#f, int, isFinal: true),
50 }, 50 },
51 A: { 51 A: {
52 #i: const Declaration(#i, int), 52 #i: const Declaration(#i, int),
53 #j: const Declaration(#j, int), 53 #j: const Declaration(#j, int),
54 #j2: const Declaration(#j2, int), 54 #j2: const Declaration(#j2, int, kind: PROPERTY),
55 #inc0: const Declaration(#inc0, Function, isMethod: true), 55 #inc0: const Declaration(#inc0, Function, kind: METHOD),
56 #inc1: const Declaration(#inc1, Function, isMethod: true), 56 #inc1: const Declaration(#inc1, Function, kind: METHOD),
57 #inc2: const Declaration(#inc2, Function, isMethod: true), 57 #inc2: const Declaration(#inc2, Function, kind: METHOD),
58 }, 58 },
59 C: { 59 C: {
60 #x: const Declaration(#x, int), 60 #x: const Declaration(#x, int),
61 #y: const Declaration(#y, String), 61 #y: const Declaration(#y, String),
62 #b: const Declaration(#b, B), 62 #b: const Declaration(#b, B),
63 #inc: const Declaration(#inc, Function, isMethod: true), 63 #inc: const Declaration(#inc, Function, kind: METHOD),
64 }, 64 },
65 C_with_A: { 65 C_with_A: {
66 #i: const Declaration(#i, int), 66 #i: const Declaration(#i, int),
67 #j: const Declaration(#j, int), 67 #j: const Declaration(#j, int),
68 #j2: const Declaration(#j2, int), 68 #j2: const Declaration(#j2, int, kind: PROPERTY),
69 #inc0: const Declaration(#inc0, Function, isMethod: true), 69 #inc0: const Declaration(#inc0, Function, kind: METHOD),
70 #inc1: const Declaration(#inc1, Function, isMethod: true), 70 #inc1: const Declaration(#inc1, Function, kind: METHOD),
71 #inc2: const Declaration(#inc2, Function, isMethod: true), 71 #inc2: const Declaration(#inc2, Function, kind: METHOD),
72 }, 72 },
73 D: { 73 D: {
74 #x2: const Declaration(#x2, int), 74 #x2: const Declaration(#x2, int, kind: PROPERTY),
75 #i2: const Declaration(#i2, int), 75 #i2: const Declaration(#i2, int, kind: PROPERTY),
76 }, 76 },
77 E: { 77 E: {
78 #y: const Declaration(#y, int, isFinal: true), 78 #y: const Declaration(#y, int, isFinal: true, kind: PROPERTY),
79 #noSuchMethod: 79 #noSuchMethod:
80 const Declaration(#noSuchMethody, Function, isMethod: true), 80 const Declaration(#noSuchMethody, Function, kind: METHOD),
81 }, 81 },
82 E2: const {}, 82 E2: const {},
83 F: {#staticMethod: const Declaration(#staticMethod, Function, 83 F: {#staticMethod: const Declaration(#staticMethod, Function,
84 isMethod: true, isStatic: true)}, 84 kind: METHOD, isStatic: true)},
85 F2: const {}, 85 F2: const {},
86 G: { 86 G: {
87 #a: const Declaration(#a, int), 87 #a: const Declaration(#a, int),
88 #b: const Declaration(#b, int, annotations: const [a1]), 88 #b: const Declaration(#b, int, annotations: const [a1]),
89 #c: const Declaration(#c, int), 89 #c: const Declaration(#c, int),
90 #d: const Declaration(#d, int, annotations: const [a2]), 90 #d: const Declaration(#d, int, annotations: const [a2]),
91 }, 91 },
92 H: { 92 H: {
93 #e: const Declaration(#e, int), 93 #e: const Declaration(#e, int),
94 #f: const Declaration(#f, int, annotations: const [a1]), 94 #f: const Declaration(#f, int, annotations: const [a1]),
95 #g: const Declaration(#g, int, annotations: const [a1]), 95 #g: const Declaration(#g, int, annotations: const [a1]),
96 #h: const Declaration(#h, int, annotations: const [a2]), 96 #h: const Declaration(#h, int, annotations: const [a2]),
97 }, 97 },
98 }, 98 },
99 names: {#i: 'i'}); 99 names: {#i: 'i'});
100 100
101 main() { 101 main() {
102 setUp(() => useGeneratedCode(_config)); 102 setUp(() => useGeneratedCode(_config));
103 common.main(); 103 common.main();
104 } 104 }
OLDNEW
« no previous file with comments | « pkg/smoke/test/common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698