commit | 32a550a85537d8360d0906307ac5c21aafa93c3e | [log] [tgz] |
---|---|---|
author | Tor Norbye <tnorbye@google.com> | Wed Mar 13 01:30:25 2013 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 13 01:30:25 2013 +0000 |
tree | 41b78da664169e683fe7c6dd9f3287bfba4e7c03 | |
parent | 1aa45f8625e570c04884548f362bffda39fb9ec8 [diff] | |
parent | 8bc5b0db7f846ae3150e67e476ba989a103593fd [diff] |
Merge "52887: Unable to format xml documents that begin with comments"
diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/EclipseXmlPrettyPrinterTest.java b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/EclipseXmlPrettyPrinterTest.java index 0e86736..8fc8dd1 100644 --- a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/EclipseXmlPrettyPrinterTest.java +++ b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/EclipseXmlPrettyPrinterTest.java
@@ -938,4 +938,20 @@ "\n" + "</resources>"); } + + public void test52887() throws Exception { + // https://code.google.com/p/android/issues/detail?id=52887 + checkFormat( + "res/layout/relative.xml", + + "<!--Comment-->\n" + + "<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + + " android:layout_width=\"match_parent\"\n" + + " android:layout_height=\"match_parent\"/>\n", + + "<!-- Comment -->\n" + + "<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + + " android:layout_width=\"match_parent\"\n" + + " android:layout_height=\"match_parent\" />\n"); + } }