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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://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) 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 library constant_expression_test; 5 library constant_expression_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/constants/expressions.dart'; 10 import 'package:compiler/src/constants/expressions.dart';
11 import 'package:compiler/src/dart2jslib.dart'; 11 import 'package:compiler/src/compiler.dart';
12 import 'package:compiler/src/elements/elements.dart'; 12 import 'package:compiler/src/elements/elements.dart';
13 import 'memory_compiler.dart'; 13 import 'memory_compiler.dart';
14 14
15 class TestData { 15 class TestData {
16 /// Declarations needed for the [constants]. 16 /// Declarations needed for the [constants].
17 final String declarations; 17 final String declarations;
18 /// Tested constants. 18 /// Tested constants.
19 final List constants; 19 final List constants;
20 20
21 const TestData(this.declarations, this.constants); 21 const TestData(this.declarations, this.constants);
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 String name = '$field'; 237 String name = '$field';
238 String expression = instanceFields[field].getText(); 238 String expression = instanceFields[field].getText();
239 String expected = data.fields[name]; 239 String expected = data.fields[name];
240 Expect.equals(expected, expression, 240 Expect.equals(expected, expression,
241 "Unexpected field expression ${expression} for field '$name' in " 241 "Unexpected field expression ${expression} for field '$name' in "
242 "contant `${constant.getText()}`, expected '${expected}'."); 242 "contant `${constant.getText()}`, expected '${expected}'.");
243 }); 243 });
244 } 244 }
245 }); 245 });
246 } 246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698