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

Unified Diff: pkg/analyzer/test/generated/resolver_test_case.dart

Issue 2648323002: Replace more same(type) with equal(type). (Closed)
Patch Set: Created 3 years, 11 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/analyzer/test/generated/resolver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/resolver_test_case.dart
diff --git a/pkg/analyzer/test/generated/resolver_test_case.dart b/pkg/analyzer/test/generated/resolver_test_case.dart
index ce6bee732cac6491d67abf2c7329a91b486ae59d..4d9d5982c7afc0b75f7afa7a35cb5b7f168d695f 100644
--- a/pkg/analyzer/test/generated/resolver_test_case.dart
+++ b/pkg/analyzer/test/generated/resolver_test_case.dart
@@ -475,8 +475,8 @@ class ResolverTestCase extends EngineTestCase {
Future<Null> assertPropagatedAssignedType(String code,
DartType expectedStaticType, DartType expectedPropagatedType) async {
SimpleIdentifier identifier = await findMarkedIdentifier(code, "v = ");
- expect(identifier.staticType, same(expectedStaticType));
- expect(identifier.propagatedType, same(expectedPropagatedType));
+ expect(identifier.staticType, expectedStaticType);
+ expect(identifier.propagatedType, expectedPropagatedType);
}
/**
@@ -486,8 +486,8 @@ class ResolverTestCase extends EngineTestCase {
Future<Null> assertPropagatedIterationType(String code,
DartType expectedStaticType, DartType expectedPropagatedType) async {
SimpleIdentifier identifier = await findMarkedIdentifier(code, "v in ");
- expect(identifier.staticType, same(expectedStaticType));
- expect(identifier.propagatedType, same(expectedPropagatedType));
+ expect(identifier.staticType, expectedStaticType);
+ expect(identifier.propagatedType, expectedPropagatedType);
}
/**
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698