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

Unified Diff: pkg/analyzer/test/generated/resolver_test.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 | « no previous file | pkg/analyzer/test/generated/resolver_test_case.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index 5de408cbd631290fb28d8fc88daccf59e4997c80..71534fbcc18d1ba518466cca9d25575fecbfb570 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -1244,18 +1244,17 @@ main() {
}''';
Source source = addSource(code);
CompilationUnit unit = await _computeResolvedUnit(source);
- InterfaceType stringType = typeProvider.stringType;
// in the declaration
{
SimpleIdentifier identifier = EngineTestCase.findNode(
unit, code, "e in", (node) => node is SimpleIdentifier);
- expect(identifier.propagatedType, same(stringType));
+ expect(identifier.propagatedType, typeProvider.stringType);
}
// in the loop body
{
SimpleIdentifier identifier = EngineTestCase.findNode(
unit, code, "e;", (node) => node is SimpleIdentifier);
- expect(identifier.propagatedType, same(stringType));
+ expect(identifier.propagatedType, typeProvider.stringType);
}
}
@@ -1269,18 +1268,17 @@ f(Stream<String> stream) async {
}''';
Source source = addSource(code);
CompilationUnit unit = await _computeResolvedUnit(source);
- InterfaceType stringType = typeProvider.stringType;
// in the declaration
{
SimpleIdentifier identifier = EngineTestCase.findNode(
unit, code, "e in", (node) => node is SimpleIdentifier);
- expect(identifier.propagatedType, same(stringType));
+ expect(identifier.propagatedType, typeProvider.stringType);
}
// in the loop body
{
SimpleIdentifier identifier = EngineTestCase.findNode(
unit, code, "e;", (node) => node is SimpleIdentifier);
- expect(identifier.propagatedType, same(stringType));
+ expect(identifier.propagatedType, typeProvider.stringType);
}
}
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/resolver_test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698