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

Side by Side Diff: samples/swarm/test/swarm_ui_lib/observable/observable_test.dart

Issue 23717003: Reorganize tests for samples so the test is discoverable from the sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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) 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 '../../../../swarm/swarm_ui_lib/observable/observable.dart'; 8 import '../../../swarm_ui_lib/observable/observable.dart';
9 import '../../../../../pkg/unittest/lib/unittest.dart'; 9 import 'package:unittest/html_config.dart';
10 import '../../../../../pkg/unittest/lib/html_config.dart'; 10 import 'package:unittest/unittest.dart';
11 11
12 part 'abstract_observable_tests.dart'; 12 part 'abstract_observable_tests.dart';
13 part 'change_event_tests.dart'; 13 part 'change_event_tests.dart';
14 part 'event_batch_tests.dart'; 14 part 'event_batch_tests.dart';
15 part 'observable_list_tests.dart'; 15 part 'observable_list_tests.dart';
16 part 'observable_value_tests.dart'; 16 part '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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698