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

Side by Side Diff: pkg/polymer_expressions/test/bindings_test.dart

Issue 141703024: Refactor of PolymerExpressions. Adds "as" expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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 library bindings_test; 5 library bindings_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 9
10 import 'package:logging/logging.dart'; 10 import 'package:logging/logging.dart';
11 import 'package:observe/observe.dart'; 11 import 'package:observe/observe.dart';
12 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone; 12 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone;
13 import 'package:polymer_expressions/polymer_expressions.dart'; 13 import 'package:polymer_expressions/polymer_expressions.dart';
14 import 'package:template_binding/template_binding.dart' show templateBind; 14 import 'package:template_binding/template_binding.dart' show templateBind;
15 import 'package:unittest/html_config.dart'; 15 //import 'package:unittest/html_config.dart';
16 import 'package:unittest/html_enhanced_config.dart';
Jennifer Messerly 2014/03/17 23:10:08 FWIW. I have a very hard time debugging failures u
justinfagnani 2014/04/24 00:26:13 Done, but I usually have to solo a test and disabl
17
16 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
17 19
18 main() => dirtyCheckZone().run(() { 20 main() => dirtyCheckZone().run(() {
19 useHtmlConfiguration(); 21 useHtmlEnhancedConfiguration();
22 // useHtmlConfiguration();
20 23
21 group('bindings', () { 24 group('bindings', () {
22 var stop = null; 25 var stop = null;
23 var messages = []; 26 var messages = [];
24 var testDiv; 27 var testDiv;
25 setUp(() { 28 setUp(() {
26 stop = Logger.root.onRecord.listen((r) => messages.add(r)); 29 stop = Logger.root.onRecord.listen((r) => messages.add(r));
27 document.body.append(testDiv = new DivElement()); 30 document.body.append(testDiv = new DivElement());
28 }); 31 });
29 32
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 @reflectable 129 @reflectable
127 class NotifyModel extends ChangeNotifier { 130 class NotifyModel extends ChangeNotifier {
128 var _x; 131 var _x;
129 NotifyModel([this._x]); 132 NotifyModel([this._x]);
130 133
131 get x => _x; 134 get x => _x;
132 set x(value) { 135 set x(value) {
133 _x = notifyPropertyChange(#x, _x, value); 136 _x = notifyPropertyChange(#x, _x, value);
134 } 137 }
135 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698