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

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

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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";
7 import "package:async_helper/async_helper.dart";
8 import 'memory_compiler.dart';
9 import 'package:compiler/src/dump_info.dart';
6 import 'dart:convert'; 10 import 'dart:convert';
7 import 'package:expect/expect.dart';
8 import 'package:async_helper/async_helper.dart';
9 import 'memory_compiler.dart';
10 11
11 const String TEST_BASIC= r""" 12 const String TEST_BASIC= r"""
12 library main; 13 library main;
13 14
14 int a = 2; 15 int a = 2;
15 16
16 class c { 17 class c {
17 final int m; 18 final int m;
18 c(this.m) { 19 c(this.m) {
19 () {} (); // TODO (sigurdm): Empty closure, hack to avoid inlining. 20 () {} (); // TODO (sigurdm): Empty closure, hack to avoid inlining.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 Expect.isTrue(main_ != null); 178 Expect.isTrue(main_ != null);
178 Expect.isTrue(fn1 != null); 179 Expect.isTrue(fn1 != null);
179 Expect.isTrue(fn2 != null); 180 Expect.isTrue(fn2 != null);
180 Expect.isTrue(deps.containsKey(main_['id'])); 181 Expect.isTrue(deps.containsKey(main_['id']));
181 Expect.isTrue(deps.containsKey(fn1['id'])); 182 Expect.isTrue(deps.containsKey(fn1['id']));
182 Expect.isTrue(deps.containsKey(fn2['id'])); 183 Expect.isTrue(deps.containsKey(fn2['id']));
183 Expect.isTrue(deps[main_['id']].any((dep) => dep['id'] == fn1['id'])); 184 Expect.isTrue(deps[main_['id']].any((dep) => dep['id'] == fn1['id']));
184 Expect.isTrue(deps[fn1['id']].any((dep) => dep['id'] == fn2['id'])); 185 Expect.isTrue(deps[fn1['id']].any((dep) => dep['id'] == fn2['id']));
185 }); 186 });
186 } 187 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | tests/compiler/dart2js/duplicate_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698