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

Side by Side Diff: dart/samples/tests/samples/lib/observable/observable_value_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 testObservableValue() { 5 testObservableValue() {
8 test('ObservableValue', () { 6 test('ObservableValue', () {
9 final value = new ObservableValue<String>('initial'); 7 final value = new ObservableValue<String>('initial');
10 expect(value.value, equals('initial')); 8 expect(value.value, equals('initial'));
11 9
12 // Set value. 10 // Set value.
(...skipping 22 matching lines...) Expand all
35 bool called = false; 33 bool called = false;
36 value.addChangeListener((summary) { called = true; }); 34 value.addChangeListener((summary) { called = true; });
37 35
38 // Set it to the same value. 36 // Set it to the same value.
39 value.value = 'foo'; 37 value.value = 'foo';
40 38
41 // Should not have gotten an event. 39 // Should not have gotten an event.
42 expect(called, isFalse); 40 expect(called, isFalse);
43 }); 41 });
44 } 42 }
OLDNEW
« no previous file with comments | « dart/samples/tests/samples/lib/observable/observable_test.dart ('k') | dart/samples/tests/samples/lib/touch/touch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698