diff options
author | Tor Norbye <tnorbye@google.com> | 2013-03-06 16:33:39 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-03-12 17:37:08 -0700 |
commit | 8bc5b0db7f846ae3150e67e476ba989a103593fd (patch) | |
tree | 41b78da664169e683fe7c6dd9f3287bfba4e7c03 /eclipse/plugins | |
parent | 1aa45f8625e570c04884548f362bffda39fb9ec8 (diff) | |
download | sdk-8bc5b0db7f846ae3150e67e476ba989a103593fd.zip sdk-8bc5b0db7f846ae3150e67e476ba989a103593fd.tar.gz sdk-8bc5b0db7f846ae3150e67e476ba989a103593fd.tar.bz2 |
52887: Unable to format xml documents that begin with comments
Change-Id: Ia3bb2658474760de51b8af4d2f74d3c4771151c7
Diffstat (limited to 'eclipse/plugins')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/EclipseXmlPrettyPrinterTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ public class EclipseXmlPrettyPrinterTest extends TestCase { "\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"); + } } |