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

Side by Side Diff: tests/compiler/dart2js/js_spec_optimization_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) 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 import 'dart:async'; 5 import 'dart:async';
6 import 'package:async_helper/async_helper.dart'; 6 import 'package:async_helper/async_helper.dart';
7 import 'package:expect/expect.dart';
8 import 'compiler_helper.dart'; 7 import 'compiler_helper.dart';
9 8
10 const String TEST_1 = r""" 9 const String TEST_1 = r"""
11 import 'dart:_foreign_helper'; 10 import 'dart:_foreign_helper';
12 main() { 11 main() {
13 // present: 'Moose' 12 // present: 'Moose'
14 JS('', 'Moose'); 13 JS('', 'Moose');
15 14
16 // absent: 'Phantom' - pure. 15 // absent: 'Phantom' - pure.
17 JS('returns: bool;effects:none;depends:none;throws:never', 'Phantom'); 16 JS('returns: bool;effects:none;depends:none;throws:never', 'Phantom');
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 97 }
99 98
100 asyncTest(() => Future.wait([ 99 asyncTest(() => Future.wait([
101 check(TEST_1), 100 check(TEST_1),
102 check(TEST_2), 101 check(TEST_2),
103 check(TEST_3), 102 check(TEST_3),
104 check(TEST_4), 103 check(TEST_4),
105 check(TEST_5), 104 check(TEST_5),
106 ])); 105 ]));
107 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698