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

Side by Side Diff: tests/compiler/dart2js/side_effect_tdiv_regression_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 7
8 import 'compiler_helper.dart'; 8 import 'compiler_helper.dart';
9 import 'parser_helper.dart';
9 10
10 const String TEST = r''' 11 const String TEST = r'''
11 class A { 12 class A {
12 var field = 42; 13 var field = 42;
13 } 14 }
14 main() { 15 main() {
15 var a = new A(); 16 var a = new A();
16 var b = [42, -1]; 17 var b = [42, -1];
17 // Force a setter on [field]. 18 // Force a setter on [field].
18 if (false) a.field = 12; 19 if (false) a.field = 12;
19 var c = a.field; 20 var c = a.field;
20 print(b[0] ~/ b[1]); 21 print(b[0] ~/ b[1]);
21 return c + a.field; 22 return c + a.field;
22 } 23 }
23 '''; 24 ''';
24 25
25 void main() { 26 void main() {
26 asyncTest(() => compileAll(TEST).then((generated) { 27 asyncTest(() => compileAll(TEST).then((generated) {
27 Expect.isTrue(generated.contains('return c + c;')); 28 Expect.isTrue(generated.contains('return c + c;'));
28 })); 29 }));
29 } 30 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization_analysis_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_callers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698