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

Unified Diff: tests/compiler/dart2js_extra/to_string_test.dart

Issue 11265020: Minifying renamer for classes, methods and instance variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: tests/compiler/dart2js_extra/to_string_test.dart
diff --git a/tests/compiler/dart2js_extra/to_string_test.dart b/tests/compiler/dart2js_extra/to_string_test.dart
index ee28afe01be7b16a943164fd4120356db649d327..3fdf13878acecb6ae091890e78753cf1df03ca2e 100644
--- a/tests/compiler/dart2js_extra/to_string_test.dart
+++ b/tests/compiler/dart2js_extra/to_string_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class A extends Object {
+ const A();
}
class Concater {
@@ -19,7 +20,9 @@ test(expected, x) {
main() {
test("Instance of 'Object'", new Object());
- test("Instance of 'A'", new A());
+ // The minifier may rename the 'A' class so we can't predict the exact
+ // name, but we still ant to be sure that the Concater works.
+ test(const A().toString(), new A());
test("[]", []);
test("1", 1);
}

Powered by Google App Engine
This is Rietveld 408576698