blob: ce92dac64dbbb48ee59a69204850db3ba593f8ce [file] [log] [blame]
{{header}}
{{include ../../xfa_catalog_1_0.fragment}}
{{include ../../xfa_object_2_0.fragment}}
{{include ../../xfa_preamble_3_0.fragment}}
{{include ../../xfa_config_4_0.fragment}}
{{object 5 0}} <<
>>
stream
<template>
<subform layout="tb" name="my_doc">
<pageSet id="page" relation="orderedOccurrence">
<occur initial="1" max="1" min="1"/>
<pageArea id="Page1" name="Page1">
<occur max="1" min="1"/>
<contentArea h="100mm" w="200mm" x="0.25in" y="0.25in"/>
</pageArea>
<pageArea id="Page2" name="Page2">
<occur max="1" min="1"/>
<contentArea h="100mm" w="200mm" x="0.25in" y="0.25in"/>
</pageArea>
</pageSet>
<event activity="docReady" ref="$host">
<script contentType="application/x-javascript">
{{include ../property_test_helpers.js}}
testROProperty(xfa.host, "appType", "Exchange");
testRWProperty(xfa.host, "calculationsEnabled", true, false);
testRIProperty(xfa.host, "currentPage", -1, 0);
testROProperty(xfa.host, "language", "");
testROProperty(xfa.host, "name", "Acrobat");
testROProperty(xfa.host, "numPages", 2);
testROProperty(xfa.host, "platform", "");
testRIProperty(xfa.host, "title", "");
testRWProperty(xfa.host, "validationsEnabled", true, false);
testROProperty(xfa.host, "variation", "Full");
testROProperty(xfa.host, "version", "11");
try {
xfa.host.beep();
xfa.host.documentCountInBatch();
xfa.host.documentInBatch();
xfa.host.exportData('to-evil-place');
xfa.host.importData('from-good-place');
xfa.host.getFocus();
xfa.host.gotoURL('http://example.com');
xfa.host.setFocus("my_doc.subform_combox_0.combox");
xfa.host.openList("my_doc.subform_combox_0.combox");
app.alert("finished testing methods");
} catch (e) {
app.alert("error testing methods: " + e);
}
</script>
</event>
</subform>
</template>
endstream
endobj
{{include ../../xfa_locale_6_0.fragment}}
{{include ../../xfa_postamble_7_0.fragment}}
{{include ../../xfa_pages_8_0.fragment}}
{{xref}}
{{trailer}}
{{startxref}}
%%EOF