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

Side by Side Diff: tests/language_strong/is_operator_clash_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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 "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class A { 7 class A {}
8 }
9 8
10 class $B extends A { 9 class $B extends A {}
11 }
12 10
13 class C implements $B { 11 class C implements $B {
14 // Try to clash with dart2js's isCLASS field. 12 // Try to clash with dart2js's isCLASS field.
15 var isB = false; 13 var isB = false;
16 var $isB = false; 14 var $isB = false;
17 var is$B = false; 15 var is$B = false;
18 var is$$B = false; 16 var is$$B = false;
19 var $is$B = false; 17 var $is$B = false;
20 18
21 var isA = false; 19 var isA = false;
(...skipping 16 matching lines...) Expand all
38 var b = things[inscrutable(1)]; 36 var b = things[inscrutable(1)];
39 Expect.isTrue(b is A); 37 Expect.isTrue(b is A);
40 Expect.isTrue(b is $B); 38 Expect.isTrue(b is $B);
41 Expect.isFalse(b is C); 39 Expect.isFalse(b is C);
42 40
43 var c = things[inscrutable(2)]; 41 var c = things[inscrutable(2)];
44 Expect.isTrue(c is A); 42 Expect.isTrue(c is A);
45 Expect.isTrue(c is $B); 43 Expect.isTrue(c is $B);
46 Expect.isTrue(c is C); 44 Expect.isTrue(c is C);
47 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698