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

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

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'dart:async'; 5 import 'dart:async';
6 import 'package:expect/expect.dart';
7 import 'package:async_helper/async_helper.dart'; 6 import 'package:async_helper/async_helper.dart';
8 import 'compiler_helper.dart'; 7 import 'compiler_helper.dart';
9 8
10 const String MOD1 = r""" 9 const String MOD1 = r"""
11 foo(param) { 10 foo(param) {
12 var a = param ? 0xFFFFFFFF : 1; 11 var a = param ? 0xFFFFFFFF : 1;
13 return a % 2; 12 return a % 2;
14 // present: ' % 2' 13 // present: ' % 2'
15 // absent: '$mod' 14 // absent: '$mod'
16 } 15 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 72
74 asyncTest(() => Future.wait([ 73 asyncTest(() => Future.wait([
75 check(MOD1), 74 check(MOD1),
76 check(MOD2), 75 check(MOD2),
77 check(MOD3), 76 check(MOD3),
78 check(REM1), 77 check(REM1),
79 check(REM2), 78 check(REM2),
80 check(REM3), 79 check(REM3),
81 ])); 80 ]));
82 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698