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

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

Issue 1562023002: Add test of unittests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 11 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 // Tests of operators. 5 // Tests of operators.
6 6
7 library operators_tests; 7 library operators2_tests;
8 8
9 import 'js_backend_cps_ir.dart'; 9 import 'js_backend_cps_ir.dart';
10 10
11 const List<TestEntry> tests = const [ 11 const List<TestEntry> tests = const [
12 12
13 const TestEntry(r""" 13 const TestEntry(r"""
14 foo(a, b) => ((a & 0xff0000) >> 1) & b; 14 foo(a, b) => ((a & 0xff0000) >> 1) & b;
15 main() { 15 main() {
16 print(foo(123, 234)); 16 print(foo(123, 234));
17 print(foo(0, 2)); 17 print(foo(0, 2));
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 function(a) { 99 function(a) {
100 var v0; 100 var v0;
101 return (a | 0) === a && (13 | 0) === 13 ? a / 13 | 0 : J.getInterceptor$n(v0 = a / 13).toInt$0(v0); 101 return (a | 0) === a && (13 | 0) === 13 ? a / 13 | 0 : J.getInterceptor$n(v0 = a / 13).toInt$0(v0);
102 }"""), 102 }"""),
103 103
104 ]; 104 ];
105 105
106 void main() { 106 void main() {
107 runTests(tests); 107 runTests(tests);
108 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698