xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_995712.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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 xmlns="http://www.xfa.org/schema/xfa-template/2.6/">
11  <subform name="form1">
12    <pageSet>
13      <pageArea id="Page1" name="Page1">
14        <contentArea h="10.5in" w="8in" x="0.25in" y="0.25in"/>
15        <medium long="11in" short="8.5in" stock="letter"/>
16      </pageArea>
17    </pageSet>
18    <subform h="10.5in" w="8in" name="subform2">
19      <field h="500mm" name="pushButton0" w="500mm" x="1mm" y="1mm">
20        <ui>
21          <button/>
22        </ui>
23        <caption>
24          <value>
25            <text>ClickMe</text>
26          </value>
27        </caption>
28        <border>
29          <edge stroke="raised"/>
30        </border>
31        <event activity="mouseUp">
32          <script contentType="application/x-javascript">
33            count_mouseUp += 1;
34            if (count_mouseUp == 2) {
35              f1 = xfa.resolveNode("xfa.form..field1");
36              xfa.host.setFocus(f1);
37              xfa.template.remerge();
38              xfa.host.openList(f1);
39            }
40          </script>
41        </event>
42      </field>
43      <field h="9.0001mm" name="field1" w="47.625mm" x="6.35mm" y="92.075mm">
44        <ui>
45          <choiceList/>
46        </ui>
47        <items>
48          <text>Foo</text>
49        </items>
50      </field>
51    </subform>
52    <event activity="docReady">
53      <script contentType="application/x-javascript">
54        count_mouseUp = 0;
55      </script>
56    </event>
57  </subform>
58</template>
59endstream
60endobj
61{{include ../../xfa_locale_6_0.fragment}}
62{{include ../../xfa_postamble_7_0.fragment}}
63{{include ../../xfa_pages_8_0.fragment}}
64{{xref}}
65{{trailer}}
66{{startxref}}
67%%EOF
68