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

Side by Side Diff: tests/kernel/unsorted/block_scope_test.dart

Issue 2454993003: Remove custom expect.dart from Kernel tests (Closed)
Patch Set: Created 4 years, 1 month 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 // Tests of block scoping. 5 // Tests of block scoping.
6 6
7 import 'expect.dart'; 7 import 'package:expect/expect.dart';
8 8
9 bool oracle() => true; 9 bool oracle() => true;
10 10
11 test0() { 11 test0() {
12 var x = 'outer', y = x; 12 var x = 'outer', y = x;
13 Expect.isTrue(x == 'outer'); 13 Expect.isTrue(x == 'outer');
14 Expect.isTrue(y == 'outer'); 14 Expect.isTrue(y == 'outer');
15 { var x = 'inner'; 15 { var x = 'inner';
16 Expect.isTrue(x == 'inner'); 16 Expect.isTrue(x == 'inner');
17 Expect.isTrue(y == 'outer'); 17 Expect.isTrue(y == 'outer');
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } else { 50 } else {
51 Expect.isTrue(false); 51 Expect.isTrue(false);
52 } 52 }
53 Expect.isTrue(x == 'toplevel'); 53 Expect.isTrue(x == 'toplevel');
54 Expect.isTrue(y == 'outer'); 54 Expect.isTrue(y == 'outer');
55 } 55 }
56 56
57 main() { 57 main() {
58 test0(); 58 test0();
59 test1(); 59 test1();
60 } 60 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/as_is_test.dart ('k') | tests/kernel/unsorted/breakable_statement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698