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

Side by Side Diff: samples/tests/samples/lib/observable/change_event_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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of observable_tests;
6
7 testChangeEvent() {
8 test('constructor', () {
9 // create property, list, global and check the proper initialization.
10 final target = new AbstractObservable();
11
12 validateUpdate(
13 new ChangeEvent.property(target, 'pK', 33, '12'),
14 target, 'pK', null, 33, '12');
15
16 validateUpdate(
17 new ChangeEvent.list(target, ChangeEvent.UPDATE, 3, 33, '12'),
18 target, null, 3, 33, '12');
19
20 validateInsert(
21 new ChangeEvent.list(target, ChangeEvent.INSERT, 3, 33, null),
22 target, null, 3, 33);
23
24 validateRemove(
25 new ChangeEvent.list(target, ChangeEvent.REMOVE, 3, null, '12'),
26 target, null, 3, '12');
27
28 validateGlobal(
29 new ChangeEvent.list(target, ChangeEvent.GLOBAL, null, null, null),
30 target);
31 });
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698