OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** Common definitions used across several tests. */ | 5 /** Common definitions used across several tests. */ |
6 | 6 |
| 7 @observable |
7 library common; | 8 library common; |
| 9 import 'package:web_ui/observe.dart'; |
8 | 10 |
9 String topLevelVar = "hi"; | 11 String topLevelVar = "hi"; |
10 | 12 |
11 bool cond = false; | 13 bool cond = false; |
12 | 14 |
13 bool get notCond => !cond; | 15 bool get notCond => !cond; |
14 | 16 |
15 List<String> loopItemList = ["a", "b"]; | 17 List<String> loopItemList = toObservable(["a", "b"]); |
16 | 18 |
17 List<String> initNullLoopItemList = null; | 19 List<String> initNullLoopItemList = null; |
OLD | NEW |