commit | 8bc5b0db7f846ae3150e67e476ba989a103593fd | [log] [tgz] |
---|---|---|
author | Tor Norbye <tnorbye@google.com> | Wed Mar 06 16:33:39 2013 -0800 |
committer | Tor Norbye <tnorbye@google.com> | Tue Mar 12 17:37:08 2013 -0700 |
tree | 41b78da664169e683fe7c6dd9f3287bfba4e7c03 | |
parent | 1aa45f8625e570c04884548f362bffda39fb9ec8 [diff] |
52887: Unable to format xml documents that begin with comments Change-Id: Ia3bb2658474760de51b8af4d2f74d3c4771151c7
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"); + } }