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

Unified Diff: pkg/analysis_server/test/protocol_test.dart

Issue 288013003: allow client to specify any combination of add/modified/removed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge and address comments Created 6 years, 7 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/analysis_server/test/domain_context_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/protocol_test.dart
diff --git a/pkg/analysis_server/test/protocol_test.dart b/pkg/analysis_server/test/protocol_test.dart
index 06e795af73e2c08cb252a492987644e1d356f854..f8d55781296928a0baa2e187a1c24090dfe9808f 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -300,6 +300,16 @@ class RequestDatumTest {
expect(indexResult.path, equals('myPath.bar'));
}
+ @runTest
+ static void hasKey() {
+ var datum = makeDatum({
+ 'foo': 'bar'
+ });
+ expect(datum.hasKey('foo'), isTrue);
+ expect(datum.hasKey('bar'), isFalse);
+ expect(datum.hasKey('baz'), isFalse);
+ }
+
static void forEachMap_nonMap() {
expect(() => makeDatum(1).forEachMap((key, value) {
fail('Non-map should not be iterated');
« no previous file with comments | « pkg/analysis_server/test/domain_context_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698