OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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('observable_tests'); | 5 #library('observable_tests'); |
6 | 6 |
7 #import('dart:html'); | 7 #import('dart:html'); |
8 #import('../../../../../ui_lib/observable/observable.dart'); | 8 #import('../../../../../ui_lib/observable/observable.dart'); |
9 #import('../../../../../../client/testing/unittest/unittest.dart'); | 9 #import('../../../../../../client/testing/unittest/unittest_html.dart'); |
10 | 10 |
11 #source('AbstractObservableTests.dart'); | 11 #source('AbstractObservableTests.dart'); |
12 #source('ChangeEventTests.dart'); | 12 #source('ChangeEventTests.dart'); |
13 #source('EventBatchTests.dart'); | 13 #source('EventBatchTests.dart'); |
14 #source('ObservableListTests.dart'); | 14 #source('ObservableListTests.dart'); |
15 #source('ObservableValueTests.dart'); | 15 #source('ObservableValueTests.dart'); |
16 | 16 |
17 void main() { | 17 void main() { |
18 group('AbstractObservable', testAbstractObservable); | 18 group('AbstractObservable', testAbstractObservable); |
19 group('ChangeEvent', testChangeEvent); | 19 group('ChangeEvent', testChangeEvent); |
(...skipping 19 matching lines...) Expand all Loading... |
39 validateEvent(e, target, pName, index, ChangeEvent.INSERT, newVal, null); | 39 validateEvent(e, target, pName, index, ChangeEvent.INSERT, newVal, null); |
40 } | 40 } |
41 | 41 |
42 void validateRemove(ChangeEvent e, target, pName, index, oldVal) { | 42 void validateRemove(ChangeEvent e, target, pName, index, oldVal) { |
43 validateEvent(e, target, pName, index, ChangeEvent.REMOVE, null, oldVal); | 43 validateEvent(e, target, pName, index, ChangeEvent.REMOVE, null, oldVal); |
44 } | 44 } |
45 | 45 |
46 void validateUpdate(ChangeEvent e, target, pName, index, newVal, oldVal) { | 46 void validateUpdate(ChangeEvent e, target, pName, index, newVal, oldVal) { |
47 validateEvent(e, target, pName, index, ChangeEvent.UPDATE, newVal, oldVal); | 47 validateEvent(e, target, pName, index, ChangeEvent.UPDATE, newVal, oldVal); |
48 } | 48 } |
OLD | NEW |