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('../../../../../pkg/unittest/unittest.dart'); | 9 #import('../../../../../pkg/unittest/lib/unittest.dart'); |
10 #import('../../../../../pkg/unittest/html_config.dart'); | 10 #import('../../../../../pkg/unittest/lib/html_config.dart'); |
11 | 11 |
12 #source('abstract_observable_tests.dart'); | 12 #source('abstract_observable_tests.dart'); |
13 #source('change_event_tests.dart'); | 13 #source('change_event_tests.dart'); |
14 #source('event_batch_tests.dart'); | 14 #source('event_batch_tests.dart'); |
15 #source('observable_list_tests.dart'); | 15 #source('observable_list_tests.dart'); |
16 #source('observable_value_tests.dart'); | 16 #source('observable_value_tests.dart'); |
17 | 17 |
18 void main() { | 18 void main() { |
19 useHtmlConfiguration(); | 19 useHtmlConfiguration(); |
20 group('AbstractObservable', testAbstractObservable); | 20 group('AbstractObservable', testAbstractObservable); |
(...skipping 20 matching lines...) Expand all Loading... |
41 validateEvent(e, target, pName, index, ChangeEvent.INSERT, newVal, null); | 41 validateEvent(e, target, pName, index, ChangeEvent.INSERT, newVal, null); |
42 } | 42 } |
43 | 43 |
44 void validateRemove(ChangeEvent e, target, pName, index, oldVal) { | 44 void validateRemove(ChangeEvent e, target, pName, index, oldVal) { |
45 validateEvent(e, target, pName, index, ChangeEvent.REMOVE, null, oldVal); | 45 validateEvent(e, target, pName, index, ChangeEvent.REMOVE, null, oldVal); |
46 } | 46 } |
47 | 47 |
48 void validateUpdate(ChangeEvent e, target, pName, index, newVal, oldVal) { | 48 void validateUpdate(ChangeEvent e, target, pName, index, newVal, oldVal) { |
49 validateEvent(e, target, pName, index, ChangeEvent.UPDATE, newVal, oldVal); | 49 validateEvent(e, target, pName, index, ChangeEvent.UPDATE, newVal, oldVal); |
50 } | 50 } |
OLD | NEW |