| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|