xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/field_methods_expected.txt (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1Alert: empty is
2Alert: field is MyField
3Alert: button is MyField.MyPushButton
4Alert: nonesuch is undefined
5Alert: dotdot is
6Alert: tripledot is MyField..nonesuch
7Alert: quaddot is MyField..nonesuch
8Alert: dotdot1 is
9Alert: dotdot2 is MyField.MyPushButton
10Alert: dotdot3 is MyField
11Alert: found 8 sub-fields:
12Alert: MyField.MyBadPushButton
13Alert: MyField.MyCheckBox
14Alert: MyField.MyFile
15Alert: MyField.MyMultiSelect
16Alert: MyField.MyPushButton
17Alert: MyField.MyRadio
18Alert: MyField.MySingleSelect
19Alert: MyField.MyText
20Alert: PASS: this.getField('MyField.MyPushButton').buttonGetCaption() =
21Alert: PASS: this.getField('MyField.MyPushButton').buttonGetCaption(0) =
22Alert: PASS: this.getField('MyField.MyPushButton').buttonGetCaption(1) =
23Alert: PASS: this.getField('MyField.MyPushButton').buttonGetCaption(2) =
24Alert: PASS: this.getField('MyField.MyPushButton').buttonGetCaption(3) threw Field.buttonGetCaption: Incorrect parameter value.
25Alert: PASS: this.getField('MyField.MyMultiSelect').buttonGetCaption() threw Field.buttonGetCaption: Object is of the wrong type.
26Alert: PASS: this.getField('MyField.MyPushButton').buttonGetIcon() = [object Object]
27Alert: PASS: this.getField('MyField.MyPushButton').buttonGetIcon(0) = [object Object]
28Alert: PASS: this.getField('MyField.MyPushButton').buttonGetIcon(1) = [object Object]
29Alert: PASS: this.getField('MyField.MyPushButton').buttonGetIcon(3) threw Field.buttonGetIcon: Incorrect parameter value.
30Alert: PASS: this.getField('MyField.MyMultiSelect').buttonGetIcon() threw Field.buttonGetIcon: Object is of the wrong type.
31Alert: PASS: this.getField('MyField.MyPushButton').buttonImportIcon() = undefined
32Alert: PASS: this.getField('MyField.MyFile').browseForFileToSubmit() = undefined
33Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(0) = foo
34Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(1, false) = bar
35Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(1, true) = bar
36Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(2, false) = Qux
37Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(2, true) = qux
38Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(3) =
39Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt() = qux
40Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(172) = qux
41Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt(-400) =
42Alert: PASS: this.getField('MyField.MyMultiSelect').getItemAt('zzzz') = foo
43Alert: PASS: this.getField('MyField').checkThisBox() threw Field.checkThisBox: Incorrect number of parameters passed to function.
44Alert: PASS: this.getField('MyField').checkThisBox({}) threw Field.checkThisBox: Object is of the wrong type.
45Alert: PASS: this.getField('MyField').defaultIsChecked() threw Field.defaultIsChecked: Incorrect number of parameters passed to function.
46Alert: PASS: this.getField('MyField').defaultIsChecked(0) = false
47Alert: PASS: this.getField('MyField').isBoxChecked() threw Field.isBoxChecked: Incorrect parameter value.
48Alert: PASS: this.getField('MyField').isBoxChecked(20) threw Field.isBoxChecked: Incorrect parameter value.
49Alert: PASS: this.getField('MyField').isBoxChecked(0) = false
50Alert: PASS: this.getField('MyField').isDefaultChecked() threw Field.isDefaultChecked: Incorrect parameter value.
51Alert: PASS: this.getField('MyField').isDefaultChecked(20) threw Field.isDefaultChecked: Incorrect parameter value.
52Alert: PASS: this.getField('MyField').isDefaultChecked(0) = false
53Alert: PASS: this.getField('MyField').setFocus() = undefined
54Alert: These mismatched cases always throw
55Alert: PASS: this.getField('MyField.MyText').browseForFileToSubmit() threw Field.browseForFileToSubmit: Object is of the wrong type.
56Alert: PASS: this.getField('MyField').checkThisBox(0, true) threw Field.checkThisBox: Object is of the wrong type.
57Alert: PASS: this.getField('MyField').getItemAt(0) threw Field.getItemAt: Object is of the wrong type.
58Alert: These always succeed without actually doing anything:
59Alert: PASS: this.getField('MyField').clearItems() = undefined
60Alert: PASS: this.getField('MyField').deleteItemAt() = undefined
61Alert: PASS: this.getField('MyField').insertItemAt() = undefined
62Alert: PASS: this.getField('MyField').setAction() = undefined
63Alert: PASS: this.getField('MyField').setItems() = undefined
64Alert: These always throw operation not supported errors:
65Alert: PASS: this.getField('MyField').buttonSetCaption() threw Field.buttonSetCaption: Operation not supported.
66Alert: PASS: this.getField('MyField').buttonSetIcon() threw Field.buttonSetIcon: Operation not supported.
67Alert: PASS: this.getField('MyField').getLock() threw Field.getLock: Operation not supported.
68Alert: PASS: this.getField('MyField').setLock() threw Field.setLock: Operation not supported.
69Alert: PASS: this.getField('MyField').signatureGetModifications() threw Field.signatureGetModifications: Operation not supported.
70Alert: PASS: this.getField('MyField').signatureGetSeedValue() threw Field.signatureGetSeedValue: Operation not supported.
71Alert: PASS: this.getField('MyField').signatureInfo() threw Field.signatureInfo: Operation not supported.
72Alert: PASS: this.getField('MyField').signatureSetSeedValue() threw Field.signatureSetSeedValue: Operation not supported.
73Alert: PASS: this.getField('MyField').signatureSign() threw Field.signatureSign: Operation not supported.
74Alert: PASS: this.getField('MyField').signatureValidate() threw Field.signatureValidate: Operation not supported.
75