aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2008-09-18 22:40:03 +0000
committerJosh Micich <josh@apache.org>2008-09-18 22:40:03 +0000
commit4769ade087e58d049a1e3bcf1a0d4987dcb378a2 (patch)
tree56766cbc91d6a71866be96ec9b9434e3230eefc0 /src/scratchpad/testcases
parent235eb62f532d9f877327b0483cae2352f7842a55 (diff)
downloadpoi-4769ade087e58d049a1e3bcf1a0d4987dcb378a2.tar.gz
poi-4769ade087e58d049a1e3bcf1a0d4987dcb378a2.zip
Merged revisions 696622-696623,696627 via svnmerge from
https://svn.apache.org/repos/asf/poi/trunk ........ r696622 | yegor | 2008-09-18 03:28:24 -0700 (Thu, 18 Sep 2008) | 1 line fixed bug #45829: HSSFPicture.getImageDimension() fails when DPI of image is zero ........ r696623 | yegor | 2008-09-18 03:45:00 -0700 (Thu, 18 Sep 2008) | 1 line fixed bug 45815: bit mask values inStyleTextPropAtom are not preserved across read-write ........ r696627 | yegor | 2008-09-18 03:58:39 -0700 (Thu, 18 Sep 2008) | 1 line patch from bug #45814: Specify RecordType for slide show Handout ........ git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@696839 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java
index 17f9010eb2..a31ddeb3ff 100644
--- a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java
+++ b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java
@@ -738,4 +738,35 @@ public class TestStyleTextPropAtom extends TestCase {
doReadWrite(data, length);
}
+
+ /**
+ * Bug 45815: bit mask values are not preserved on read-write
+ *
+ * From the test file attached to the bug:
+ *
+ * <StyleTextPropAtom info="0" type="4001" size="94" offset="114782" header="00 00 A1 0F 5E 00 00 00 ">
+ * 14 00 00 00 00 00 41 00 0A 00 06 00 50 00 07 00 01 00 00 00 00 00 00 00 02
+ * 00 00 00 01 04 00 00 01 04 01 00 00 00 01 08 00 00 01 08 0C 00 00 00 01 0C
+ * 00 00 01 0C 01 00 00 00 01 10 00 00 01 10 01 00 00 00 01 14 00 00 01 14 01
+ * 00 00 00 01 18 00 00 01 18 01 00 00 00 01 1C 00 00 01 1C
+ * </StyleTextPropAtom>
+ */
+ public void test45815() throws Exception {
+ int length = 19;
+ byte[] data = {
+ 0x00, 0x00, (byte)0xA1, 0x0F, 0x5E, 0x00, 0x00, 0x00, 0x14, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x0A, 0x00, 0x06, 0x00,
+ 0x50, 0x00, 0x07, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00,
+ 0x01, 0x04, 0x01, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00,
+ 0x01, 0x08, 0x0C, 0x00, 0x00, 0x00, 0x01, 0x0C, 0x00, 0x00,
+ 0x01, 0x0C, 0x01, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00,
+ 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x01, 0x14, 0x00, 0x00,
+ 0x01, 0x14, 0x01, 0x00, 0x00, 0x00, 0x01, 0x18, 0x00, 0x00,
+ 0x01, 0x18, 0x01, 0x00, 0x00, 0x00, 0x01, 0x1C, 0x00, 0x00,
+ 0x01, 0x1C
+ };
+ doReadWrite(data, length);
+ }
+
}