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

Side by Side Diff: test/watcher_test.dart

Issue 11465028: rename web_components -> web_ui (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 8 years 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
« pubspec.yaml ('K') | « test/utils_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** Tests for the watcher library. */ 5 /** Tests for the watcher library. */
6 library watcher_test; 6 library watcher_test;
7 7
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'package:web_components/watcher.dart'; 9 import 'package:web_ui/watcher.dart';
10 10
11 main() { 11 main() {
12 group('core', () { 12 group('core', () {
13 test('simple watcher ', () { 13 test('simple watcher ', () {
14 int x = 0; 14 int x = 0;
15 int valueSeen = null; 15 int valueSeen = null;
16 var stop = watch(() => x, expectAsync1((_) { valueSeen = x; })); 16 var stop = watch(() => x, expectAsync1((_) { valueSeen = x; }));
17 x = 22; 17 x = 22;
18 dispatch(); 18 dispatch();
19 expect(valueSeen, equals(22)); 19 expect(valueSeen, equals(22));
20 stop(); // cleanup 20 stop(); // cleanup
21 }); 21 });
22 22
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 206
207 class A { 207 class A {
208 B b = new B(3); 208 B b = new B(3);
209 } 209 }
210 210
211 class B { 211 class B {
212 int c; 212 int c;
213 B(this.c); 213 B(this.c);
214 } 214 }
OLDNEW
« pubspec.yaml ('K') | « test/utils_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698