Provide actual event names in xfa_exclgroup.in As taken from |gs_EventParaInfos| in cjx_node.cpp Change-Id: Id989c578023927fa99908d6696a3638f2dbc2a6f Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/68411 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/javascript/xfa_specific/xfa_exclgroup.in b/testing/resources/javascript/xfa_specific/xfa_exclgroup.in index d63b4df..1a29352 100644 --- a/testing/resources/javascript/xfa_specific/xfa_exclgroup.in +++ b/testing/resources/javascript/xfa_specific/xfa_exclgroup.in
@@ -38,7 +38,22 @@ expectError("RadioButtonList.execEvent()"); expectError("RadioButtonList.execEvent(1, 2)"); expect("RadioButtonList.execEvent('nonesuch')", null); + expect("RadioButtonList.execEvent('calculate')", null); + expect("RadioButtonList.execEvent('change')", null); + expect("RadioButtonList.execEvent('click')", null); + expect("RadioButtonList.execEvent('enter')", null); + expect("RadioButtonList.execEvent('exit')", null); + expect("RadioButtonList.execEvent('full')", null); + expect("RadioButtonList.execEvent('indexChange')", null); expect("RadioButtonList.execEvent('initialize')", null); + expect("RadioButtonList.execEvent('mouseDown')", null); + expect("RadioButtonList.execEvent('mouseEnter')", null); + expect("RadioButtonList.execEvent('mouseExit')", null); + expect("RadioButtonList.execEvent('mouseUp')", null); + expect("RadioButtonList.execEvent('postOpen')", null); + expect("RadioButtonList.execEvent('preOpen')", null); + expect("RadioButtonList.execEvent('preSign')", null); + expect("RadioButtonList.execEvent('validate')", null); expectError("RadioButtonList.execInitialize('badarg')"); expect("RadioButtonList.execInitialize()", null);
diff --git a/testing/resources/javascript/xfa_specific/xfa_exclgroup_expected.txt b/testing/resources/javascript/xfa_specific/xfa_exclgroup_expected.txt index d92bc94..7ca5a78 100644 --- a/testing/resources/javascript/xfa_specific/xfa_exclgroup_expected.txt +++ b/testing/resources/javascript/xfa_specific/xfa_exclgroup_expected.txt
@@ -2,7 +2,22 @@ Alert: PASS: RadioButtonList.execEvent() threw XFAObject.execEvent: Incorrect number of parameters passed to function. Alert: PASS: RadioButtonList.execEvent(1, 2) threw XFAObject.execEvent: Incorrect number of parameters passed to function. Alert: PASS: RadioButtonList.execEvent('nonesuch') = undefined +Alert: PASS: RadioButtonList.execEvent('calculate') = undefined +Alert: PASS: RadioButtonList.execEvent('change') = undefined +Alert: PASS: RadioButtonList.execEvent('click') = undefined +Alert: PASS: RadioButtonList.execEvent('enter') = undefined +Alert: PASS: RadioButtonList.execEvent('exit') = undefined +Alert: PASS: RadioButtonList.execEvent('full') = undefined +Alert: PASS: RadioButtonList.execEvent('indexChange') = undefined Alert: PASS: RadioButtonList.execEvent('initialize') = undefined +Alert: PASS: RadioButtonList.execEvent('mouseDown') = undefined +Alert: PASS: RadioButtonList.execEvent('mouseEnter') = undefined +Alert: PASS: RadioButtonList.execEvent('mouseExit') = undefined +Alert: PASS: RadioButtonList.execEvent('mouseUp') = undefined +Alert: PASS: RadioButtonList.execEvent('postOpen') = undefined +Alert: PASS: RadioButtonList.execEvent('preOpen') = undefined +Alert: PASS: RadioButtonList.execEvent('preSign') = undefined +Alert: PASS: RadioButtonList.execEvent('validate') = undefined Alert: PASS: RadioButtonList.execInitialize('badarg') threw XFAObject.execInitialize: Incorrect number of parameters passed to function. Alert: PASS: RadioButtonList.execInitialize() = undefined Alert: PASS: RadioButtonList.execCalculate('badarg') threw XFAObject.execCalculate: Incorrect number of parameters passed to function.