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

Unified Diff: packages/observe/test/unique_message_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/observe/test/transformer_test.dart ('k') | packages/package_config/.analysis_options » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/observe/test/unique_message_test.dart
diff --git a/packages/observe/test/unique_message_test.dart b/packages/observe/test/unique_message_test.dart
deleted file mode 100644
index 54fb5a4629b34319c7a34a16a25543c251d02f52..0000000000000000000000000000000000000000
--- a/packages/observe/test/unique_message_test.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/// Tests for some of the utility helper functions used by the compiler.
-library polymer.test.build.messages_test;
-
-import 'dart:mirrors';
-
-import 'package:unittest/unittest.dart';
-import 'package:code_transformers/messages/messages.dart' show Message;
-
-import 'package:observe/src/messages.dart' as p1;
-
-/// [p1] is accessed via mirrors, this comment prevents the analyzer from
-/// complaining about it.
-main() {
- test('each message id is unique', () {
- var seen = {};
- int total = 0;
- var mirrors = currentMirrorSystem();
- var lib = mirrors.findLibrary(#observe.src.messages);
- expect(lib, isNotNull);
- lib.declarations.forEach((symbol, decl) {
- if (decl is! VariableMirror) return;
- var field = lib.getField(symbol).reflectee;
- var name = MirrorSystem.getName(symbol);
- if (field is! Message) return;
- var id = field.id;
- expect(seen.containsKey(id), isFalse, reason: 'Duplicate id `$id`. '
- 'Currently set for both `$name` and `${seen[id]}`.');
- seen[id] = name;
- total++;
- });
- expect(seen.length, total);
- });
-}
« no previous file with comments | « packages/observe/test/transformer_test.dart ('k') | packages/package_config/.analysis_options » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698