OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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"; |
| 6 |
5 class S { | 7 class S { |
6 var foo = "S-foo"; | 8 var foo = "S-foo"; |
7 } | 9 } |
8 | 10 |
9 class M1 { | 11 class M1 { |
10 final bar = "M1-bar"; | 12 final bar = "M1-bar"; |
11 } | 13 } |
12 | 14 |
13 class M2 { | 15 class M2 { |
14 var baz = "M2-baz"; | 16 var baz = "M2-baz"; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 Expect.throws(() => c.fez = 0, (error) => error is NoSuchMethodError); | 111 Expect.throws(() => c.fez = 0, (error) => error is NoSuchMethodError); |
110 Expect.throws(() => d.fez = 0, (error) => error is NoSuchMethodError); | 112 Expect.throws(() => d.fez = 0, (error) => error is NoSuchMethodError); |
111 Expect.throws(() => e.fez = 0, (error) => error is NoSuchMethodError); | 113 Expect.throws(() => e.fez = 0, (error) => error is NoSuchMethodError); |
112 | 114 |
113 f.fez = "F-fez-f"; | 115 f.fez = "F-fez-f"; |
114 Expect.throws(() => c.fez, (error) => error is NoSuchMethodError); | 116 Expect.throws(() => c.fez, (error) => error is NoSuchMethodError); |
115 Expect.throws(() => d.fez, (error) => error is NoSuchMethodError); | 117 Expect.throws(() => d.fez, (error) => error is NoSuchMethodError); |
116 Expect.throws(() => e.fez, (error) => error is NoSuchMethodError); | 118 Expect.throws(() => e.fez, (error) => error is NoSuchMethodError); |
117 Expect.equals("F-fez-f", f.fez); | 119 Expect.equals("F-fez-f", f.fez); |
118 } | 120 } |
OLD | NEW |