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

Side by Side Diff: tests/compiler/dart2js/constant_folding_codeUnitAt_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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 constant folding on numbers. 4 // Test constant folding on numbers.
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:expect/expect.dart';
7 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
8 import 'compiler_helper.dart'; 9 import 'compiler_helper.dart';
9 10
10 const String TEST_1 = """ 11 const String TEST_1 = """
11 foo() { 12 foo() {
12 var a = 'Hello'; 13 var a = 'Hello';
13 var b = 0; 14 var b = 0;
14 return a.codeUnitAt(b); 15 return a.codeUnitAt(b);
15 } 16 }
16 """; 17 """;
(...skipping 18 matching lines...) Expand all
35 36
36 main() { 37 main() {
37 asyncTest(() => Future.wait([ 38 asyncTest(() => Future.wait([
38 compileAndMatch(TEST_1, 'foo', new RegExp(r'return 72')), 39 compileAndMatch(TEST_1, 'foo', new RegExp(r'return 72')),
39 compileAndDoNotMatch(TEST_1, 'foo', new RegExp(r'Hello')), 40 compileAndDoNotMatch(TEST_1, 'foo', new RegExp(r'Hello')),
40 41
41 compileAndMatch(TEST_2, 'foo', new RegExp(r'Hello')), 42 compileAndMatch(TEST_2, 'foo', new RegExp(r'Hello')),
42 compileAndMatch(TEST_3, 'foo', new RegExp(r'Hello')), 43 compileAndMatch(TEST_3, 'foo', new RegExp(r'Hello')),
43 ])); 44 ]));
44 } 45 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/concrete_type_inference_test.dart ('k') | tests/compiler/dart2js/cpa_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698