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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitPropertyDescriptor.java

Issue 328663002: Version 1.5.0-dev.4.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitPropertyDescriptor.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitPropertyDescriptor.java (revision 37110)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitPropertyDescriptor.java (working copy)
@@ -128,7 +128,19 @@
@Override
public int compareTo(WebkitPropertyDescriptor other) {
- return getName().toUpperCase().compareTo(other.getName().toUpperCase());
+ String name0 = getName();
+ String name1 = other.getName();
+
+ // Special case names starting with `[[` (like [[class]]).
+ if (name0.startsWith("[[")) {
+ name0 = "~" + name0;
+ }
+
+ if (name1.startsWith("[[")) {
+ name1 = "~" + name1;
+ }
+
+ return name0.compareToIgnoreCase(name1);
}
/**

Powered by Google App Engine
This is Rietveld 408576698