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

Unified Diff: pkg/observe/test/observable_list_test.dart

Issue 26734004: use symbol literals instead of const ctor in packages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/observe/lib/src/path_observer.dart ('k') | pkg/observe/test/observable_map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/test/observable_list_test.dart
diff --git a/pkg/observe/test/observable_list_test.dart b/pkg/observe/test/observable_list_test.dart
index 60ddadd5368a5260b8fa82bced655f9bc680db29..43527e05db00cf55721476f5a72eb65121bab7c5 100644
--- a/pkg/observe/test/observable_list_test.dart
+++ b/pkg/observe/test/observable_list_test.dart
@@ -10,8 +10,6 @@ import 'observe_test_utils.dart';
main() {
// TODO(jmesserly): need all standard List API tests.
- const _LENGTH = const Symbol('length');
-
StreamSubscription sub;
sharedTearDown() { sub.cancel(); }
@@ -25,7 +23,7 @@ main() {
list = toObservable([1, 2, 3]);
changes = null;
sub = list.changes.listen((records) {
- changes = records.where((r) => r.changes(_LENGTH)).toList();
+ changes = records.where((r) => r.changes(#length)).toList();
});
});
@@ -256,9 +254,7 @@ main() {
});
}
-const _LENGTH = const Symbol('length');
-
-final _lengthChange = new PropertyChangeRecord(_LENGTH);
+final _lengthChange = new PropertyChangeRecord(#length);
_change(index, {removedCount: 0, addedCount: 0}) => new ListChangeRecord(
index, removedCount: removedCount, addedCount: addedCount);
« no previous file with comments | « pkg/observe/lib/src/path_observer.dart ('k') | pkg/observe/test/observable_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698