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

Unified Diff: tests/language/enum_test.dart

Issue 1398843008: Fix Enum.toString when enum type is private. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/enum_test.dart
diff --git a/tests/language/enum_test.dart b/tests/language/enum_test.dart
index 84daba1143b034f0ad499ecf0727e9c5e1e19da8..09395eb7b3213e0d30cf2bfce9492bd028ed8940 100644
--- a/tests/language/enum_test.dart
+++ b/tests/language/enum_test.dart
@@ -11,6 +11,7 @@ enum Enum2 { A }
enum Enum3 { B, C }
enum Enum4 { D, E, }
enum Enum5 { F, G, H }
+enum _Enum6 { I, _J }
main() {
Expect.equals('Enum1._', Enum1._.toString());
@@ -45,6 +46,9 @@ main() {
Expect.equals(2, Enum5.H.index);
Expect.listEquals([Enum5.F, Enum5.G, Enum5.H], Enum5.values);
Enum5.values.forEach(test5);
+
+ Expect.equals('_Enum6.I', _Enum6.I.toString());
+ Expect.equals('_Enum6._J', _Enum6._J.toString());
}
test1(Enum1 e) {
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698