aboutsummaryrefslogtreecommitdiff
path: root/builder/src/test
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2013-01-11 16:07:05 -0800
committerXavier Ducrohet <xav@android.com>2013-01-11 16:07:53 -0800
commit2b9c1d72406fe8328321b43f29cb49a9536f2c0b (patch)
tree9bbd800843d7cdafaf828cfff3a1acb76b0a3231 /builder/src/test
parentb8392b8e917751d2c04384ead7a6af0a03585a49 (diff)
downloadbuild-2b9c1d72406fe8328321b43f29cb49a9536f2c0b.tar.gz
Properly exclude non resource files from the ResourceSet.
Change-Id: I9f21207b7f2812eab47f1ef96fafc4a107258dd9
Diffstat (limited to 'builder/src/test')
-rw-r--r--builder/src/test/resources/testData/baseResourceSet/values/values.xml~80
1 files changed, 80 insertions, 0 deletions
diff --git a/builder/src/test/resources/testData/baseResourceSet/values/values.xml~ b/builder/src/test/resources/testData/baseResourceSet/values/values.xml~
new file mode 100644
index 0000000..0da935f
--- /dev/null
+++ b/builder/src/test/resources/testData/baseResourceSet/values/values.xml~
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Some comment to throw off the XML parser if it doesn't properly handle
+ * Document.getDocumentElement().
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <drawable name="color_drawable">#ffffffff</drawable>
+ <drawable name="drawable_ref">@drawable/stat_notify_sync_anim0</drawable>
+ <color name="color">#00000000</color>
+
+ <string name="basic_string">basic_string</string>
+ <string name="xliff_string"><xliff:g id="number" example="123">%1$s</xliff:g><xliff:g id="unit" example="KB">%2$s</xliff:g></string>
+ <string name="styled_string">Forgot your username or password\?\nVisit <b>google.com/accounts/recovery</b>.</string>
+
+ <style name="style">
+ <item name="android:singleLine">true</item>
+ <item name="android:textAppearance">@style/TextAppearance.WindowTitle</item>
+ <item name="android:shadowColor">#BB000000</item>
+ <item name="android:shadowRadius">2.75</item>
+ </style>
+
+ <!-- list of 3- or 4-letter mnemonics for a 10-key numeric keypad -->
+ <string-array translatable="false" name="string_array">
+ <item></item><!-- 0 -->
+ <item></item><!-- 1 -->
+ <item>ABC</item><!-- 2 -->
+ <item>DEF</item><!-- 3 -->
+ <item>GHI</item><!-- 4 -->
+ <item>JKL</item><!-- 5 -->
+ <item>MNO</item><!-- 6 -->
+ <item>PQRS</item><!-- 7 -->
+ <item>TUV</item><!-- 8 -->
+ <item>WXYZ</item><!-- 9 -->
+ </string-array>
+
+ <attr name="dimen_attr" format="dimension" />
+
+ <!-- Default font family. -->
+ <attr name="string_attr" format="string" />
+
+ <!-- Default text typeface. -->
+ <attr name="enum_attr">
+ <enum name="normal" value="0" />
+ <enum name="sans" value="1" />
+ <enum name="serif" value="2" />
+ <enum name="monospace" value="3" />
+ </attr>
+
+ <!-- Default text typeface style. -->
+ <attr name="flag_attr">
+ <flag name="normal" value="0" />
+ <flag name="bold" value="1" />
+ <flag name="italic" value="2" />
+ </attr>
+
+ <!-- These are the standard attributes that make up a complete theme. -->
+ <declare-styleable name="declare_styleable">
+ <!-- ============== -->
+ <!-- Generic styles -->
+ <!-- ============== -->
+ <eat-comment />
+
+ <!-- Default color of foreground imagery. -->
+ <attr name="blah" format="color" />
+ <!-- Default color of foreground imagery on an inverted background. -->
+ <attr name="android:colorForegroundInverse" />
+ </declare-styleable>
+
+ <!-- The width that is used when creating thumbnails of applications. -->
+ <dimen name="dimen">164dp</dimen>
+
+ <item type="id" name="item_id" />
+
+ <integer name="integer">75</integer>
+
+ <item type="layout" name="layout_ref">@layout/ref</item>
+ <item type="layout" name="alias_replaced_by_file">@layout/ref</item>
+
+</resources>