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

Side by Side Diff: test/data/input/common.dart

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 10 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) 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;
OLDNEW
« no previous file with comments | « test/data/input/code_in_dart_file_test.html ('k') | test/data/input/component_field_2way_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698