aboutsummaryrefslogtreecommitdiffstats
path: root/test-data/document
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-04-11 03:02:18 +0000
committerJaven O'Neal <onealj@apache.org>2016-04-11 03:02:18 +0000
commite3ad497b79b0135659c6b6d1c011e3fbabb91a14 (patch)
treedbb769ba086a4852bf56dc0eb79f17eee05c4cd0 /test-data/document
parent100e079cc89caf834bfadc6ff75a462bf4f84ce6 (diff)
downloadpoi-e3ad497b79b0135659c6b6d1c011e3fbabb91a14.tar.gz
poi-e3ad497b79b0135659c6b6d1c011e3fbabb91a14.zip
bug 52949: add Word, Powerpoint, and Visio (HDGF) files with macros to test macro extraction
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1738502 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test-data/document')
-rw-r--r--test-data/document/SimpleMacro.docbin0 -> 36864 bytes
-rw-r--r--test-data/document/SimpleMacro.docmbin0 -> 15517 bytes
-rw-r--r--test-data/document/SimpleMacro.vba10
3 files changed, 10 insertions, 0 deletions
diff --git a/test-data/document/SimpleMacro.doc b/test-data/document/SimpleMacro.doc
new file mode 100644
index 0000000000..a6311b3c9d
--- /dev/null
+++ b/test-data/document/SimpleMacro.doc
Binary files differ
diff --git a/test-data/document/SimpleMacro.docm b/test-data/document/SimpleMacro.docm
new file mode 100644
index 0000000000..123b8157f3
--- /dev/null
+++ b/test-data/document/SimpleMacro.docm
Binary files differ
diff --git a/test-data/document/SimpleMacro.vba b/test-data/document/SimpleMacro.vba
new file mode 100644
index 0000000000..684420c27e
--- /dev/null
+++ b/test-data/document/SimpleMacro.vba
@@ -0,0 +1,10 @@
+Sub TestMacro()
+'
+' TestMacro Macro
+' This is a test macro
+'
+
+'
+ ActiveDocument.Paragraphs(1).Range.Text = "This is a macro word processing document"
+End Sub
+