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

Side by Side Diff: samples/tests/samples/src/lib/observable/ObservableTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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('../../../../../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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698