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

Side by Side Diff: tests/compiler/dart2js/dump_info_test.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Test that parameters keep their names in the output. 4 // Test that parameters keep their names in the output.
5 5
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'memory_compiler.dart'; 8 import 'memory_compiler.dart';
9 import 'package:compiler/implementation/dump_info.dart'; 9 import 'package:compiler/src/dump_info.dart';
10 import 'dart:convert'; 10 import 'dart:convert';
11 11
12 const String TEST_BASIC= r""" 12 const String TEST_BASIC= r"""
13 library main; 13 library main;
14 14
15 int a = 2; 15 int a = 2;
16 16
17 class c { 17 class c {
18 final int m; 18 final int m;
19 c(this.m) { 19 c(this.m) {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 Expect.isTrue(main_ != null); 175 Expect.isTrue(main_ != null);
176 Expect.isTrue(fn1 != null); 176 Expect.isTrue(fn1 != null);
177 Expect.isTrue(fn2 != null); 177 Expect.isTrue(fn2 != null);
178 Expect.isTrue(deps.containsKey(main_['id'])); 178 Expect.isTrue(deps.containsKey(main_['id']));
179 Expect.isTrue(deps.containsKey(fn1['id'])); 179 Expect.isTrue(deps.containsKey(fn1['id']));
180 Expect.isTrue(deps.containsKey(fn2['id'])); 180 Expect.isTrue(deps.containsKey(fn2['id']));
181 Expect.isTrue(deps[main_['id']].any((dep) => dep['id'] == fn1['id'])); 181 Expect.isTrue(deps[main_['id']].any((dep) => dep['id'] == fn1['id']));
182 Expect.isTrue(deps[fn1['id']].any((dep) => dep['id'] == fn2['id'])); 182 Expect.isTrue(deps[fn1['id']].any((dep) => dep['id'] == fn2['id']));
183 }); 183 });
184 } 184 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/deferred_not_in_main_test.dart ('k') | tests/compiler/dart2js/erroneous_element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698