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

Side by Side Diff: samples/swarm/test/swarm_ui_lib/observable/event_batch_tests.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 part of observable_tests; 5 part of observable_tests;
6 6
7 testEventBatch() { 7 testEventBatch() {
8 test('EventBatch', () { 8 test('EventBatch', () {
9 // check that all events are fired at the end. Use all record methods 9 // check that all events are fired at the end. Use all record methods
10 // in abstract observable 10 // in abstract observable
(...skipping 20 matching lines...) Expand all
31 31
32 expect(res.events, hasLength(6)); 32 expect(res.events, hasLength(6));
33 validateUpdate(res.events[0], target, 'pM', null, 10, 11); 33 validateUpdate(res.events[0], target, 'pM', null, 10, 11);
34 validateUpdate(res.events[1], target, 'pL', null, '11', '13'); 34 validateUpdate(res.events[1], target, 'pL', null, '11', '13');
35 validateUpdate(res.events[2], target, null, 2, 'a', 'b'); 35 validateUpdate(res.events[2], target, null, 2, 'a', 'b');
36 validateInsert(res.events[3], target, null, 5, 'a'); 36 validateInsert(res.events[3], target, null, 5, 'a');
37 validateRemove(res.events[4], target, null, 4, 'c'); 37 validateRemove(res.events[4], target, null, 4, 'c');
38 validateGlobal(res.events[5], target); 38 validateGlobal(res.events[5], target);
39 }); 39 });
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698