1{{header}} 2{{include ../../xfa_catalog_1_0.fragment}} 3{{include ../../xfa_object_2_0.fragment}} 4{{include ../../xfa_preamble_3_0.fragment}} 5{{include ../../xfa_config_4_0.fragment}} 6{{object 5 0}} << 7 {{streamlen}} 8>> 9stream 10<template> 11 <subform layout="tb" name="my_doc"> 12 <pageSet id="page" relation="orderedOccurrence"> 13 <occur initial="1" max="1" min="1"/> 14 <pageArea id="Page1" name="Page1"> 15 <occur max="1" min="1"/> 16 <contentArea h="100mm" w="200mm" x="0.25in" y="0.25in"/> 17 </pageArea> 18 <pageArea id="Page2" name="Page2"> 19 <occur max="1" min="1"/> 20 <contentArea h="100mm" w="200mm" x="0.25in" y="0.25in"/> 21 </pageArea> 22 </pageSet> 23 <event activity="docReady" ref="$host"> 24 <script contentType="application/x-javascript"><![CDATA[ 25 {{include ../expect.js}} 26 template0 = xfa.resolveNode("#template"); 27 expect("template0.className", "template"); 28 29 expectError("template0.execCalculate(1)"); 30 expect("template0.execCalculate()", false); 31 32 expectError("template0.execInitialize(1)", false); 33 expect("template0.execInitialize()", false); 34 35 expectError("template0.execValidate(1)", false); 36 expect("template0.execValidate()", false); 37 38 expectError("template0.formNodes()", undefined); 39 expectError("template0.formNodes(1, 2)", undefined); 40 expect("template0.formNodes(true)", true); 41 42 expectError("template0.recalculate()", undefined); 43 expectError("template0.recalculate(1, 2)", undefined); 44 expect("template0.recalculate(true)", true); 45 46 expectError("template0.remerge(1)", undefined); 47 expect("template0.remerge()", undefined); 48 ]]></script> 49 </event> 50 </subform> 51</template> 52endstream 53endobj 54{{include ../../xfa_locale_6_0.fragment}} 55{{include ../../xfa_postamble_7_0.fragment}} 56{{include ../../xfa_pages_8_0.fragment}} 57{{xref}} 58{{trailer}} 59{{startxref}} 60%%EOF 61