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

Unified Diff: tests/language_strong/abstract_runtime_error_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/abstract_getter_test.dart ('k') | tests/language_strong/abstract_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/abstract_runtime_error_test.dart
diff --git a/tests/language_strong/abstract_runtime_error_test.dart b/tests/language_strong/abstract_runtime_error_test.dart
index 62cf3f7ebdbdfef48ee4be5b4546b2a1d10b2bee..d8cafe51e47744901cd1a3c6fc8278dac3686e28 100644
--- a/tests/language_strong/abstract_runtime_error_test.dart
+++ b/tests/language_strong/abstract_runtime_error_test.dart
@@ -12,7 +12,7 @@ import "package:expect/expect.dart";
abstract class Interface {
- void foo(); /// 03: static type warning
+ void foo(); //# 03: static type warning
}
abstract class AbstractClass {
@@ -27,19 +27,19 @@ class NonAbstractClass implements Interface {
toString() => 'NonAbstractClass';
}
-Interface interface() => new Interface(); /// 01: static type warning
+Interface interface() => new Interface(); //# 01: static type warning
-AbstractClass abstractClass() => new AbstractClass(); /// 02: static type warning
+AbstractClass abstractClass() => new AbstractClass(); //# 02: static type warning
bool isAbstractClassInstantiationError(e) {
return e is AbstractClassInstantiationError;
}
void main() {
- Expect.throws(interface, isAbstractClassInstantiationError, /// 01: continued
- "expected AbstractClassInstantiationError"); // /// 01: continued
- Expect.throws(abstractClass, isAbstractClassInstantiationError, /// 02: continued
- "expected AbstractClassInstantiationError"); // /// 02: continued
+ Expect.throws(interface, isAbstractClassInstantiationError, //# 01: continued
+ "expected AbstractClassInstantiationError"); // //# 01: continued
+ Expect.throws(abstractClass, isAbstractClassInstantiationError, //# 02: continued
+ "expected AbstractClassInstantiationError"); // //# 02: continued
Expect.stringEquals('ConcreteSubclass', '${new ConcreteSubclass()}');
Expect.stringEquals('NonAbstractClass', '${new NonAbstractClass()}');
}
« no previous file with comments | « tests/language_strong/abstract_getter_test.dart ('k') | tests/language_strong/abstract_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698