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

Side by Side Diff: dart/samples/tests/samples/lib/observable/event_batch_tests.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 part of observable_tests;
2
3 // 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
4 // 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
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 testEventBatch() { 5 testEventBatch() {
8 test('EventBatch', () { 6 test('EventBatch', () {
9 // check that all events are fired at the end. Use all record methods 7 // check that all events are fired at the end. Use all record methods
10 // in abstract observable 8 // in abstract observable
11 final target = new AbstractObservable(); 9 final target = new AbstractObservable();
12 EventSummary res = null; 10 EventSummary res = null;
(...skipping 18 matching lines...) Expand all
31 29
32 expect(res.events, hasLength(6)); 30 expect(res.events, hasLength(6));
33 validateUpdate(res.events[0], target, 'pM', null, 10, 11); 31 validateUpdate(res.events[0], target, 'pM', null, 10, 11);
34 validateUpdate(res.events[1], target, 'pL', null, '11', '13'); 32 validateUpdate(res.events[1], target, 'pL', null, '11', '13');
35 validateUpdate(res.events[2], target, null, 2, 'a', 'b'); 33 validateUpdate(res.events[2], target, null, 2, 'a', 'b');
36 validateInsert(res.events[3], target, null, 5, 'a'); 34 validateInsert(res.events[3], target, null, 5, 'a');
37 validateRemove(res.events[4], target, null, 4, 'c'); 35 validateRemove(res.events[4], target, null, 4, 'c');
38 validateGlobal(res.events[5], target); 36 validateGlobal(res.events[5], target);
39 }); 37 });
40 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698