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

Side by Side Diff: pkg/polymer/test/property_observe_test.dart

Issue 232373002: pkg/polymer[_expressions] unittest fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: oops Created 6 years, 8 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 polymer.test.property_change_test; 5 library polymer.test.property_change_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:polymer/polymer.dart'; 9 import 'package:polymer/polymer.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
11 import 'package:unittest/html_config.dart'; 11 import 'package:unittest/html_config.dart';
12 import 'package:unittest/matcher.dart';
13 12
14 var _changes = 0; 13 var _changes = 0;
15 final _done = new Completer(); 14 final _done = new Completer();
16 15
17 checkDone() { 16 checkDone() {
18 if (6 == ++_changes) { 17 if (6 == ++_changes) {
19 _done.complete(); 18 _done.complete();
20 } 19 }
21 } 20 }
22 21
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 82 }
84 83
85 @initMethod 84 @initMethod
86 main() { 85 main() {
87 useHtmlConfiguration(); 86 useHtmlConfiguration();
88 87
89 setUp(() => Polymer.onReady); 88 setUp(() => Polymer.onReady);
90 89
91 test('changes detected', () => _done.future); 90 test('changes detected', () => _done.future);
92 } 91 }
OLDNEW
« no previous file with comments | « pkg/polymer/test/property_change_test.dart ('k') | pkg/polymer_expressions/test/bindings_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698