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

Side by Side Diff: test/parse_test.dart

Issue 1412903002: include fields in verify_deps, refactor graph dfs (Closed) Base URL: git@github.com:dart-lang/dart2js_info.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
« no previous file with comments | « test/graph_test.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) 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 4
5 import 'package:dart2js_info/info.dart'; 5 import 'package:dart2js_info/info.dart';
6 import 'package:test/test.dart'; 6 import 'package:test/test.dart';
7 7
8 main() { 8 main() {
9 // TODO(sigmund): add more tests
10 group('parse', () { 9 group('parse', () {
11 test('empty', () { 10 test('empty', () {
12 var json = { 11 var json = {
13 'elements': { 12 'elements': {
14 'library': {}, 13 'library': {},
15 'class': {}, 14 'class': {},
16 'function': {}, 15 'function': {},
17 'field': {}, 16 'field': {},
18 'typedef': {}, 17 'typedef': {},
19 }, 18 },
20 'holding': {}, 19 'holding': {},
21 'program': {'size': 10}, 20 'program': {'size': 10},
22 }; 21 };
23 22
24 expect(new AllInfoJsonCodec().decode(json).program.size, 10); 23 expect(new AllInfoJsonCodec().decode(json).program.size, 10);
25 }); 24 });
26 }); 25 });
27 } 26 }
OLDNEW
« no previous file with comments | « test/graph_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698