Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JS] Fix few errors around AFSpecial_Keystroke #14429

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

calixteman
Copy link
Contributor

@calixteman
Copy link
Contributor Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2022

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/ed658ea98c2b899/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2022

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/b8f3736da6aed57/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/ed658ea98c2b899/output.txt

Total script time: 3.02 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jan 7, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/b8f3736da6aed57/output.txt

Total script time: 5.83 mins

  • Unit Tests: Passed

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the rest of the AFSpecial_Keystroke method (to try and understand this code better), I cannot help thinking that the following block is redundant:

if (psf === null) {
throw new Error("Invalid psf in AFSpecial_Keystroke");
}

given that we're throwing the exact same error in the default of the switch just below:
default:
throw new Error("Invalid psf in AFSpecial_Keystroke");


r=me, since the patch looks reasonable.

src/scripting_api/aform.js Outdated Show resolved Hide resolved
 - @cincodenada found some errors which are fixed in this patch;
 - it partially fixes issue mozilla#14306;
 - add some tests.
@calixteman
Copy link
Contributor Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2022

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/936e392eecdbc5a/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2022

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/ef86b1d787a9b34/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/936e392eecdbc5a/output.txt

Total script time: 3.16 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/ef86b1d787a9b34/output.txt

Total script time: 5.31 mins

  • Unit Tests: Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AForm validation rejects valid fields
3 participants