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

Unified Diff: tests/compiler/dart2js_native/native_class_fields_test.dart

Issue 11453032: Reapply class/method/field minification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 8 years 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_native/native_class_fields_test.dart
diff --git a/tests/compiler/dart2js_native/native_field_name_test.dart b/tests/compiler/dart2js_native/native_class_fields_test.dart
similarity index 83%
copy from tests/compiler/dart2js_native/native_field_name_test.dart
copy to tests/compiler/dart2js_native/native_class_fields_test.dart
index d479d82522347153fbd5a10eedf45dc4245de1ff..8221eec9a0f3706201d7b88d6b80da74077e2927 100644
--- a/tests/compiler/dart2js_native/native_field_name_test.dart
+++ b/tests/compiler/dart2js_native/native_class_fields_test.dart
@@ -2,8 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Check that native fields are not incorrectly renamed.
-
+// Verify that native fields on classes are not renamed by the minifier.
class A native "*A" {
int myLongPropertyName;
int getValue;
@@ -12,9 +11,6 @@ class A native "*A" {
}
-// This code is inside the setup function, so the function names are not
-// accessible, but the makeA variable is global through the magic of JS scoping.
-// The contents of this are of course not analyzable by the compiler.
void setup() native r"""
function getter() {
return ++this.getValue;

Powered by Google App Engine
This is Rietveld 408576698