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

Unified Diff: test/perf/input/observe_model.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 side-by-side diff with in-line comments
Download patch
Index: test/perf/input/observe_model.dart
diff --git a/test/perf/input/observe_model.dart b/test/perf/input/observe_model.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fc899ed0f36e5154e0c76f4427aa9ce305aad200
--- /dev/null
+++ b/test/perf/input/observe_model.dart
@@ -0,0 +1,13 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library observe_model;
+
+import 'package:web_ui/observe.dart';
+
+@observable
+class Model {
+ int x = 0;
+ int y = 0;
+}

Powered by Google App Engine
This is Rietveld 408576698