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"> 25 {{include ../expect.js}} 26 {{include ../property_test_helpers.js}} 27 testROProperty(xfa.form, "all", "[object XFAObject]"); 28 testROProperty(xfa.form, "classAll", "[object XFAObject]"); 29 testROProperty(xfa.form, "classIndex", 0); 30 testROProperty(xfa.form, "index", 0); 31 testROProperty(xfa.form, "nodes", "[object XFAObject]"); 32 testROProperty(xfa.form, "parent", "[object XFAObject]"); 33 testROProperty(xfa.form, "somExpression", "xfa[0].form[0]"); 34 expect("typeof xfa.form.resolveNode", "function"); 35 expect("typeof xfa.form.resolveNodes", "function"); 36 expectError("xfa.form.resolveNode()"); 37 expect("xfa.form.resolveNode('bogus')", null); 38 expectError("xfa.form.resolveNodes()"); 39 expect("xfa.form.resolveNodes('bogus')", "[object XFAObject]"); 40 expect("xfa.form.resolveNodes('bogus').length", 0); 41 </script> 42 </event> 43 </subform> 44</template> 45endstream 46endobj 47{{include ../../xfa_locale_6_0.fragment}} 48{{include ../../xfa_postamble_7_0.fragment}} 49{{include ../../xfa_pages_8_0.fragment}} 50{{xref}} 51{{trailer}} 52{{startxref}} 53%%EOF 54