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

Unified Diff: tests/language_strong/class_literal_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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 | « tests/language_strong/class_keyword_test.dart ('k') | tests/language_strong/class_override_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/class_literal_test.dart
diff --git a/tests/language_strong/class_literal_test.dart b/tests/language_strong/class_literal_test.dart
index 58de6dd3bc0a8e48f3d614611f73071337512d24..aa10945614375b11918aed4d31195a64d06dab11 100644
--- a/tests/language_strong/class_literal_test.dart
+++ b/tests/language_strong/class_literal_test.dart
@@ -23,30 +23,30 @@ main() {
Expect.isFalse(Class == null);
// Verify that dereferencing a class literal is a runtime error.
- Expect.throws(() { Class(); }, (e) => e is NoSuchMethodError); /// 01: static type warning
- Expect.throws(() { Class[0]; }, (e) => e is NoSuchMethodError); /// 02: static type warning
- Expect.throws(() { var x = Class(); }, (e) => e is NoSuchMethodError); /// 03: static type warning
- Expect.throws(() { var x = Class[0]; }, (e) => e is NoSuchMethodError); /// 04: static type warning
- Expect.throws(() { var x = Class[0].field; }, (e) => e is NoSuchMethodError); /// 05: static type warning
- Expect.throws(() { var x = Class[0].method(); }, (e) => e is NoSuchMethodError); /// 06: static type warning
- Expect.throws(() { foo(Class()); }, (e) => e is NoSuchMethodError); /// 07: static type warning
- Expect.throws(() { foo(Class[0]); }, (e) => e is NoSuchMethodError); /// 08: static type warning
- Expect.throws(() { foo(Class[0].field); }, (e) => e is NoSuchMethodError); /// 09: static type warning
- Expect.throws(() { foo(Class[0].method()); }, (e) => e is NoSuchMethodError); /// 10: static type warning
- Expect.throws(() { Class[0] = 91; }, (e) => e is NoSuchMethodError); /// 11: static type warning
- Expect.throws(() { Class++; }, (e) => e is NoSuchMethodError); /// 12: static type warning
- Expect.throws(() { ++Class; }, (e) => e is NoSuchMethodError); /// 13: static type warning
- Expect.throws(() { Class[0] += 3; }, (e) => e is NoSuchMethodError); /// 14: static type warning
- Expect.throws(() { ++Class[0]; }, (e) => e is NoSuchMethodError); /// 15: static type warning
- Expect.throws(() { Class[0]++; }, (e) => e is NoSuchMethodError); /// 16: static type warning
- Expect.throws(() { Class.method(); }, (e) => e is NoSuchMethodError); /// 17: static type warning
- Expect.throws(() { Class.field; }, (e) => e is NoSuchMethodError); /// 18: static type warning
- Expect.throws(() { var x = Class.method(); }, (e) => e is NoSuchMethodError); /// 19: static type warning
- Expect.throws(() { var x = Class.field; }, (e) => e is NoSuchMethodError); /// 20: static type warning
- Expect.throws(() { foo(Class.method()); }, (e) => e is NoSuchMethodError); /// 21: static type warning
- Expect.throws(() { foo(Class.field); }, (e) => e is NoSuchMethodError); /// 22: static type warning
- Expect.throws(() { Class / 3; }, (e) => e is NoSuchMethodError); /// 23: static type warning
- Expect.throws(() { Class += 3; }, (e) => e is NoSuchMethodError); /// 24: static type warning
+ Expect.throws(() { Class(); }, (e) => e is NoSuchMethodError); //# 01: static type warning
+ Expect.throws(() { Class[0]; }, (e) => e is NoSuchMethodError); //# 02: static type warning
+ Expect.throws(() { var x = Class(); }, (e) => e is NoSuchMethodError); //# 03: static type warning
+ Expect.throws(() { var x = Class[0]; }, (e) => e is NoSuchMethodError); //# 04: static type warning
+ Expect.throws(() { var x = Class[0].field; }, (e) => e is NoSuchMethodError); //# 05: static type warning
+ Expect.throws(() { var x = Class[0].method(); }, (e) => e is NoSuchMethodError); //# 06: static type warning
+ Expect.throws(() { foo(Class()); }, (e) => e is NoSuchMethodError); //# 07: static type warning
+ Expect.throws(() { foo(Class[0]); }, (e) => e is NoSuchMethodError); //# 08: static type warning
+ Expect.throws(() { foo(Class[0].field); }, (e) => e is NoSuchMethodError); //# 09: static type warning
+ Expect.throws(() { foo(Class[0].method()); }, (e) => e is NoSuchMethodError); //# 10: static type warning
+ Expect.throws(() { Class[0] = 91; }, (e) => e is NoSuchMethodError); //# 11: static type warning
+ Expect.throws(() { Class++; }, (e) => e is NoSuchMethodError); //# 12: static type warning
+ Expect.throws(() { ++Class; }, (e) => e is NoSuchMethodError); //# 13: static type warning
+ Expect.throws(() { Class[0] += 3; }, (e) => e is NoSuchMethodError); //# 14: static type warning
+ Expect.throws(() { ++Class[0]; }, (e) => e is NoSuchMethodError); //# 15: static type warning
+ Expect.throws(() { Class[0]++; }, (e) => e is NoSuchMethodError); //# 16: static type warning
+ Expect.throws(() { Class.method(); }, (e) => e is NoSuchMethodError); //# 17: static type warning
+ Expect.throws(() { Class.field; }, (e) => e is NoSuchMethodError); //# 18: static type warning
+ Expect.throws(() { var x = Class.method(); }, (e) => e is NoSuchMethodError); //# 19: static type warning
+ Expect.throws(() { var x = Class.field; }, (e) => e is NoSuchMethodError); //# 20: static type warning
+ Expect.throws(() { foo(Class.method()); }, (e) => e is NoSuchMethodError); //# 21: static type warning
+ Expect.throws(() { foo(Class.field); }, (e) => e is NoSuchMethodError); //# 22: static type warning
+ Expect.throws(() { Class / 3; }, (e) => e is NoSuchMethodError); //# 23: static type warning
+ Expect.throws(() { Class += 3; }, (e) => e is NoSuchMethodError); //# 24: static type warning
// Verify that a class literal isn't a string literal.
Expect.notEquals(Class, "Class");
@@ -56,5 +56,5 @@ main() {
var y = Class;
Expect.isTrue(y.toString() is String);
- Expect.throws(() { Class.toString(); }, (e) => e is NoSuchMethodError); /// 25: static type warning
+ Expect.throws(() { Class.toString(); }, (e) => e is NoSuchMethodError); //# 25: static type warning
}
« no previous file with comments | « tests/language_strong/class_keyword_test.dart ('k') | tests/language_strong/class_override_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698