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

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

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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
Index: pkg/analyzer/test/generated/static_warning_code_test.dart
diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart
index 6b26293bd99c8c32bb6859de39c2e861f62b6fa0..e18ebe59026887bce0ca15fad5ba9b597fbadb70 100644
--- a/pkg/analyzer/test/generated/static_warning_code_test.dart
+++ b/pkg/analyzer/test/generated/static_warning_code_test.dart
@@ -1504,61 +1504,61 @@ class A implements Function {
verify([source]);
}
- test_functionWithoutCall_indirect_extends() async {
+ test_functionWithoutCall_direct_typeAlias() async {
Source source = addSource(r'''
-abstract class A implements Function {
-}
-class B extends A {
-}''');
+class M {}
+class A = Object with M implements Function;''');
await computeAnalysisResult(source);
assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
verify([source]);
}
- test_functionWithoutCall_indirect_implements() async {
+ test_functionWithoutCall_indirect_extends() async {
Source source = addSource(r'''
abstract class A implements Function {
}
-class B implements A {
+class B extends A {
}''');
await computeAnalysisResult(source);
assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
verify([source]);
}
- test_functionWithoutCall_mixin_implements() async {
+ test_functionWithoutCall_indirect_extends_typeAlias() async {
Source source = addSource(r'''
abstract class A implements Function {}
-class B extends Object with A {}''');
+class M {}
+class B = A with M;''');
await computeAnalysisResult(source);
assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
verify([source]);
}
- test_functionWithoutCall_direct_typeAlias() async {
+ test_functionWithoutCall_indirect_implements() async {
Source source = addSource(r'''
-class M {}
-class A = Object with M implements Function;''');
+abstract class A implements Function {
+}
+class B implements A {
+}''');
await computeAnalysisResult(source);
assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
verify([source]);
}
- test_functionWithoutCall_indirect_extends_typeAlias() async {
+ test_functionWithoutCall_indirect_implements_typeAlias() async {
Source source = addSource(r'''
abstract class A implements Function {}
class M {}
-class B = A with M;''');
+class B = Object with M implements A;''');
await computeAnalysisResult(source);
assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
verify([source]);
}
- test_functionWithoutCall_indirect_implements_typeAlias() async {
+ test_functionWithoutCall_mixin_implements() async {
Source source = addSource(r'''
abstract class A implements Function {}
-class M {}
-class B = Object with M implements A;''');
+class B extends Object with A {}''');
await computeAnalysisResult(source);
assertErrors(source, [StaticWarningCode.FUNCTION_WITHOUT_CALL]);
verify([source]);
« no previous file with comments | « pkg/analyzer/test/generated/static_type_warning_code_test.dart ('k') | pkg/analyzer/test/generated/type_system_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698